diff --git a/src/world/World.php b/src/world/World.php index 04c0f48d4..eed6459f6 100644 --- a/src/world/World.php +++ b/src/world/World.php @@ -894,6 +894,9 @@ class World implements ChunkManager{ $dz = mt_rand(-$randRange, $randRange); $hash = World::chunkHash($dx + $chunkX, $dz + $chunkZ); if(!isset($chunkTickList[$hash]) and isset($this->chunks[$hash])){ + if(!$this->chunks[$hash]->isLightPopulated()){ + continue; + } //check adjacent chunks are loaded for($cx = -1; $cx <= 1; ++$cx){ for($cz = -1; $cz <= 1; ++$cz){