mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 02:38:54 +00:00
PopulationTask: do not populate light in chunks out of the gate
this is a relic from when we needed to store light on disk. Now we can just calculate lighting as-needed instead.
This commit is contained in:
parent
9b6fa8c25b
commit
42148f0d15
@ -118,10 +118,6 @@ class PopulationTask extends AsyncTask{
|
|||||||
$chunk = $manager->getChunk($chunk->getX(), $chunk->getZ());
|
$chunk = $manager->getChunk($chunk->getX(), $chunk->getZ());
|
||||||
$chunk->setPopulated();
|
$chunk->setPopulated();
|
||||||
|
|
||||||
$chunk->recalculateHeightMap();
|
|
||||||
$chunk->populateSkyLight();
|
|
||||||
$chunk->setLightPopulated();
|
|
||||||
|
|
||||||
$this->chunk = FastChunkSerializer::serialize($chunk);
|
$this->chunk = FastChunkSerializer::serialize($chunk);
|
||||||
|
|
||||||
foreach($chunks as $i => $c){
|
foreach($chunks as $i => $c){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user