1.14.3 pre 4, added back profiling and removed double dispensing for blocks.

This commit is contained in:
gnembon committed 2019-06-19 21:37:04 -03:00
1 parent e4e4188dfc
commit 224468964b
6 files changed
+9 -32

No files matched your search

@@ -174,8 +174,8 @@ public class EntityValue extends Value
put("invulnerable", (e, a) -> new NumericValue(e.isInvulnerable()));
put("dimension", (e, a) -> new StringValue(e.dimension.toString().replaceFirst("minecraft:","")));
put("height", (e, a) -> new NumericValue(e.getSize(EntityPose.STANDING).height));
put("width", (e, a) -> new NumericValue(e.getSize(EntityPose.STANDING).width));
put("height", (e, a) -> new NumericValue(e.getDimensions(EntityPose.STANDING).height));
put("width", (e, a) -> new NumericValue(e.getDimensions(EntityPose.STANDING).width));
put("eye_height", (e, a) -> new NumericValue(e.getEyeHeight(EntityPose.STANDING)));
put("age", (e, a) -> new NumericValue(e.age));
put("item", (e, a) -> (e instanceof ItemEntity)?new StringValue(((ItemEntity) e).getStack().getName().getString()):Value.NULL);