diff --git a/resources/pocketmine.yml b/resources/pocketmine.yml index c905880b7..769b271a2 100644 --- a/resources/pocketmine.yml +++ b/resources/pocketmine.yml @@ -125,7 +125,6 @@ chunk-ticking: per-tick: 40 #Radius of chunks around a player to tick tick-radius: 3 - light-updates: false #IDs of blocks not to perform random ticking on. disable-block-ticking: #- 2 # grass diff --git a/src/pocketmine/world/World.php b/src/pocketmine/world/World.php index 58d273fb0..019aff67e 100644 --- a/src/pocketmine/world/World.php +++ b/src/pocketmine/world/World.php @@ -2521,7 +2521,7 @@ class World implements ChunkManager, Metadatable{ (new ChunkLoadEvent($this, $chunk, !$chunk->isGenerated()))->call(); - if($chunk->isPopulated() and $this->getServer()->getProperty("chunk-ticking.light-updates", false)){ + if(!$chunk->isLightPopulated() and $chunk->isPopulated()){ $this->getServer()->getAsyncPool()->submitTask(new LightPopulationTask($this, $chunk)); }