not throwing exception

This commit is contained in:
Nameless-123 committed 2020-04-26 11:34:49 +02:00
1 parent 63a49f0386
commit cdfce6f005
1 file changed
+2 -3
@@ -914,9 +914,8 @@ public class EntityValue extends Value
});
put("jumping",(e,v)->{
if(!(e instanceof LivingEntity)){
throw new InternalExpressionException("Non-living entities can't jump");
}
if(!(e instanceof LivingEntity)) return;
((LivingEntity) e).setJumping(v.getBoolean());
});