This commit is contained in:
gnembon committed 2020-12-02 19:22:56 -04:00
1 parent 1c39914f4f
commit 5422493c33
9 files changed
+24 -20

No files matched your search

@@ -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)->{