light population is now optional via pocketmine.yml

This commit is contained in:
Shoghi Cervantes
2015-05-28 23:39:09 +02:00
parent c578898aa4
commit 3bb037204e
3 changed files with 11 additions and 3 deletions

View File

@ -2300,7 +2300,7 @@ class Level implements ChunkManager, Metadatable{
return false;
}
if(!$chunk->isLightPopulated() and $chunk->isPopulated()){
if(!$chunk->isLightPopulated() and $chunk->isPopulated() and $this->getServer()->getProperty("chunk-ticking.light-updates", false)){
$this->getServer()->getScheduler()->scheduleAsyncTask(new LightPopulationTask($this, $chunk));
}