Chunk: fixed hasChanged being set on fastDeserialize() chunks (caused by 2bb497b7162719507184e0e3a36027cedd7bbe29)

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:
Dylan K. Taylor 2020-11-01 15:50:21 +00:00
parent fec42f16ba
commit 6cff08cd65

View File

@ -929,6 +929,7 @@ class Chunk{
$chunk->setGenerated($terrainGenerated);
$chunk->setPopulated($terrainPopulated);
$chunk->setLightPopulated($lightPopulated);
$chunk->setChanged(false);
return $chunk;
}