Now it just continues to jump

This commit is contained in:
Nameless-123 committed 2020-04-24 12:17:07 +02:00
1 parent e8946fe9d5
commit 367e584e43
1 file changed
+3 -3
@@ -907,10 +907,10 @@ public class EntityValue extends Value
}); });
put("jump",(e,v)->{ put("jump",(e,v)->{
if(!(e instanceof ServerPlayerEntity)){ if(!(e instanceof LivingEntity)){
throw new InternalExpressionException("Non-player entities can't jump"); throw new InternalExpressionException("Non-living entities can't jump");
} }
((PlayerEntity) e).jump(); ((LivingEntity) e).setJumping(v.getBoolean());
}); });
// gamemode_id [check](gamemode just wont read string) // gamemode_id [check](gamemode just wont read string)