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)->{ put("jumping",(e,v)->{
if(!(e instanceof LivingEntity)){ if(!(e instanceof LivingEntity)) return;
throw new InternalExpressionException("Non-living entities can't jump");
}
((LivingEntity) e).setJumping(v.getBoolean()); ((LivingEntity) e).setJumping(v.getBoolean());
}); });