Replaced deprecated player.isOnGround (reads clients value) check with entity.isOnGround (calculates server side)