Fixed issue where you can teleport without being near a door