mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Merge remote-tracking branch 'origin/stable'
# Conflicts: # composer.lock # resources/vanilla # src/pocketmine/Player.php # tests/phpstan/configs/runtime-type-checks.neon
This commit is contained in:
@ -2365,7 +2365,8 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
|
||||
}
|
||||
|
||||
public function onChunkChanged(Chunk $chunk) : void{
|
||||
if(isset($this->usedChunks[$hash = World::chunkHash($chunk->getX(), $chunk->getZ())])){
|
||||
$status = $this->usedChunks[$hash = World::chunkHash($chunk->getX(), $chunk->getZ())] ?? null;
|
||||
if($status !== null && !$status->equals(UsedChunkStatus::NEEDED())){
|
||||
$this->usedChunks[$hash] = UsedChunkStatus::NEEDED();
|
||||
$this->nextChunkOrderRun = 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user