Merge branch 'master' into future

This commit is contained in:
gnembon committed 2021-10-20 21:40:57 -03:00
commit 044d191409
2 files changed
+17

No files matched your search

@@ -271,7 +271,11 @@ public class NumericValue extends Value
public NbtElement toTag(boolean force)
{
if (longValue != null)
{
if (abs(longValue) < Integer.MAX_VALUE-2)
return NbtInt.of((int)(long)longValue);
return NbtLong.of(longValue);
}
long lv = getLong();
if (value == (double)lv)
{