mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 11:58:00 +00:00
Chunk: fixed hasChanged being set on fastDeserialize() chunks (caused by 2bb497b716
)
this caused some performance issues and silent bugs with the generator, notably that the generator would always think all chunks had been changed, causing them to be re-set back into the world 9 times.
This commit is contained in:
@@ -929,6 +929,7 @@ class Chunk{
|
|||||||
$chunk->setGenerated($terrainGenerated);
|
$chunk->setGenerated($terrainGenerated);
|
||||||
$chunk->setPopulated($terrainPopulated);
|
$chunk->setPopulated($terrainPopulated);
|
||||||
$chunk->setLightPopulated($lightPopulated);
|
$chunk->setLightPopulated($lightPopulated);
|
||||||
|
$chunk->setChanged(false);
|
||||||
|
|
||||||
return $chunk;
|
return $chunk;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user