From b252c18d34004c28b3a3469296683561f7db346e Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sun, 20 Sep 2020 13:42:27 +0100 Subject: [PATCH] World: Loading chunks to sync block updates is a bug again, this should never happen, because chunk unloading cleans this stuff out. But if it did happen, loading chunks is not the way to take care of it. --- src/world/World.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/world/World.php b/src/world/World.php index c2d8306f2..ee6aa1a7c 100644 --- a/src/world/World.php +++ b/src/world/World.php @@ -754,7 +754,7 @@ class World implements ChunkManager{ } World::getXZ($index, $chunkX, $chunkZ); if(count($blocks) > 512){ - $chunk = $this->getOrLoadChunk($chunkX, $chunkZ); + $chunk = $this->getChunk($chunkX, $chunkZ); foreach($this->getChunkPlayers($chunkX, $chunkZ) as $p){ $p->onChunkChanged($chunk); }