Discard light information from disk storage

this makes world conversion faster and offers the opportunity to correct age-old lighting bugs.
This commit is contained in:
Dylan K. Taylor
2019-03-03 16:22:44 +00:00
parent 6e00ab2069
commit 1bb9b3d3ab
6 changed files with 33 additions and 89 deletions

View File

@ -2663,7 +2663,7 @@ class Level implements ChunkManager, Metadatable{
(new ChunkLoadEvent($this, $chunk, !$chunk->isGenerated()))->call();
if(!$chunk->isLightPopulated() and $chunk->isPopulated() and $this->getServer()->getProperty("chunk-ticking.light-updates", false)){
if($chunk->isPopulated() and $this->getServer()->getProperty("chunk-ticking.light-updates", false)){
$this->getServer()->getAsyncPool()->submitTask(new LightPopulationTask($this, $chunk));
}