Implemented a world check
Check if the player is within a block to account for entering portals.