mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 17:59:41 +00:00
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:
parent
2079e2fd88
commit
c84ec90398
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user