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)->{
|
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());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user