Set forceMovement to null when player is closed (#472)

Cater for the very very very slim chance that a player could quit while teleporting, be leaked and then have their level unloaded and leak their level.
This commit is contained in:
madecode15 2017-03-29 04:20:31 -04:00 committed by Dylan K. Taylor
parent 2079e2fd88
commit c84ec90398

View File

@ -3136,6 +3136,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
$this->loadQueue = [];
$this->hasSpawned = [];
$this->spawnPosition = null;
$this->forceMovement = null;
}
if($this->perm !== null){