Prevented the player from falling into the void.