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.
This commit is contained in:
Dylan K. Taylor 2019-06-08 17:47:55 +01:00
parent ad1b9e5cdd
commit 73964e6e2f
2 changed files with 1 additions and 2 deletions

View File

@ -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

View File

@ -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));
}