mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-23 19:34:15 +00:00
Player: Drop load queue on level switch
This ensures that the player doesn't request bad chunks if it was teleported from an invalid level.
This commit is contained in:
parent
ca54c8d78e
commit
47742d74c8
@ -931,6 +931,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->usedChunks = [];
|
$this->usedChunks = [];
|
||||||
|
$this->loadQueue = [];
|
||||||
$this->level->sendTime($this);
|
$this->level->sendTime($this);
|
||||||
$this->level->sendDifficulty($this);
|
$this->level->sendDifficulty($this);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user