Fixed bat not working when player is on a moving platform.