20w49a
This commit is contained in:
1 parent
1c39914f4f
commit
5422493c33
9 files changed
+24
-20
No files matched your search
@@ -108,7 +108,7 @@ public class BlockValue extends Value
|
||||
{
|
||||
if (data != null)
|
||||
{
|
||||
if (data.isEmpty())
|
||||
if (data.method_33133())
|
||||
return null;
|
||||
return data;
|
||||
}
|
||||
|
||||
@@ -1295,7 +1295,7 @@ public class EntityValue extends Value
|
||||
GameMode toSet = v instanceof NumericValue ?
|
||||
GameMode.byId(((NumericValue) v).getInt(), null) :
|
||||
GameMode.byName(v.getString().toLowerCase(Locale.ROOT), null);
|
||||
if (toSet != null) ((ServerPlayerEntity) e).setGameMode(toSet);
|
||||
if (toSet != null) ((ServerPlayerEntity) e).changeGameMode(toSet);
|
||||
});
|
||||
|
||||
put("jumping",(e,v)->{
|
||||
|
||||
@@ -392,7 +392,7 @@ public class NBTSerializableValue extends Value implements ContainerValueInterfa
|
||||
{
|
||||
Tag tag = getTag();
|
||||
if (tag instanceof CompoundTag)
|
||||
return !((CompoundTag) tag).isEmpty();
|
||||
return !((CompoundTag) tag).method_33133();
|
||||
if (tag instanceof AbstractListTag)
|
||||
return ((AbstractListTag) tag).isEmpty();
|
||||
if (tag instanceof AbstractNumberTag)
|
||||
|
||||
Reference in new issue
Block a user