Fixed light population happening before population

This commit is contained in:
Shoghi Cervantes 2015-05-09 16:37:34 +02:00
parent 1a1b8830a4
commit ab18b7833f
No known key found for this signature in database
GPG Key ID: 78464DB0A7837F89
3 changed files with 3 additions and 5 deletions

View File

@ -612,17 +612,16 @@ class Level implements ChunkManager, Metadatable{
$this->timings->entityTick->stopTiming();
$this->timings->tileEntityTick->startTiming();
Timings::$tickTileEntityTimer->startTiming();
//Update tiles that need update
if(count($this->updateTiles) > 0){
//Timings::$tickTileEntityTimer->startTiming();
foreach($this->updateTiles as $id => $tile){
if($tile->onUpdate() !== true){
unset($this->updateTiles[$id]);
}
}
//Timings::$tickTileEntityTimer->stopTiming();
}
Timings::$tickTileEntityTimer->stopTiming();
$this->timings->tileEntityTick->stopTiming();
$this->timings->doTickTiles->startTiming();

View File

@ -158,7 +158,7 @@ abstract class BaseFullChunk implements FullChunk{
}
if(!$this->isLightPopulated()){
if(!$this->isLightPopulated() and $this->isPopulated()){
$this->recalculateHeightMap();
$this->populateSkyLight();
$this->setLightPopulated();

View File

@ -121,7 +121,6 @@ chunk-ticking:
chunk-generation:
#Max. amount of chunks in the waiting queue to be generated
#It's recommended to set this to 4 * settings.async-workers
queue-size: 8
#Max. amount of chunks in the waiting queue to be populated
population-queue-size: 2