Fixed a bug in which the player ignored gravity while jumping.