chraft/c-raft — Issue #105: Teleport to the unloaded chunk
Author: Gremlin13
Created: 2011-10-13 22:01:55+00:00
State: open

When the enity is being telepoted to the unloaded chunk it leads to the endless fall in a void.
How to reproduce:
1. Login
2. Run far away from a spawning point until the spawning point chunk willn't be unloaded
3. Type /spawn

Haven't checked the reason yet, but there are two possible reasons:
1. Chunk isn't loaded, but we just set the player's position to a new one.
2. Chunk is being loaded (somewhere), but haven't sent to a client

The best place to implement the check is EntityBase.TeleportTo(). This way it'll fix both /spawn and any other teleport issues.