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.
This commit is contained in:
Dylan K. Taylor 2020-09-20 13:42:27 +01:00
parent b7471fc77b
commit b252c18d34

View File

@ -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);
}