Merge branch 'master' into 1.17

This commit is contained in:
gnembon committed 2021-04-26 23:29:27 -03:00
commit 988357317a
13 files changed
+111 -8

No files matched your search

@@ -551,6 +551,12 @@ public class EntityValue extends Value
});
put("air", (e, a) -> new NumericValue(e.getAir()));
put("language", (e, a)->{
if(!(e instanceof ServerPlayerEntity))
return NULL;
String lang = ((ServerPlayerEntityInterface) e).getLanguage();
return StringValue.of(lang);
});
put("persistence", (e, a) -> {
if (e instanceof MobEntity) return new NumericValue(((MobEntity) e).isPersistent());
return Value.NULL;