not throwing exception
This commit is contained in:
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());
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user