diff --git a/src/world/generator/PopulationTask.php b/src/world/generator/PopulationTask.php index f4f3df3ac..a35197084 100644 --- a/src/world/generator/PopulationTask.php +++ b/src/world/generator/PopulationTask.php @@ -23,7 +23,6 @@ declare(strict_types=1); namespace pocketmine\world\generator; -use pocketmine\block\BlockFactory; use pocketmine\scheduler\AsyncTask; use pocketmine\world\format\Chunk; use pocketmine\world\format\io\FastChunkSerializer; @@ -118,11 +117,6 @@ class PopulationTask extends AsyncTask{ $chunk = $manager->getChunk($chunk->getX(), $chunk->getZ()); $chunk->setPopulated(); - $blockFactory = BlockFactory::getInstance(); - $chunk->recalculateHeightMap($blockFactory->blocksDirectSkyLight); - $chunk->populateSkyLight($blockFactory->lightFilter); - $chunk->setLightPopulated(); - $this->chunk = FastChunkSerializer::serialize($chunk); foreach($chunks as $i => $c){