Fixed possible midair jump.

If the player stepped off a platform they were able to make a jump
in midair. This has been fixed.