mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
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:
@ -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));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user