From 73964e6e2f814d4cf1bf8ea5cb4ca4e637c95784 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sat, 8 Jun 2019 17:47:55 +0100 Subject: [PATCH] Always do chunk relighting for unlit chunks on load this is necessary because we stopped saving light info some time ago, so it has to be calculated on load for things to work properly. --- resources/pocketmine.yml | 1 - src/pocketmine/world/World.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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)); }