mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 18:29:46 +00:00
Fixed light population happening before population
This commit is contained in:
parent
1a1b8830a4
commit
ab18b7833f
@ -612,17 +612,16 @@ class Level implements ChunkManager, Metadatable{
|
|||||||
$this->timings->entityTick->stopTiming();
|
$this->timings->entityTick->stopTiming();
|
||||||
|
|
||||||
$this->timings->tileEntityTick->startTiming();
|
$this->timings->tileEntityTick->startTiming();
|
||||||
Timings::$tickTileEntityTimer->startTiming();
|
|
||||||
|
|
||||||
//Update tiles that need update
|
//Update tiles that need update
|
||||||
if(count($this->updateTiles) > 0){
|
if(count($this->updateTiles) > 0){
|
||||||
|
//Timings::$tickTileEntityTimer->startTiming();
|
||||||
foreach($this->updateTiles as $id => $tile){
|
foreach($this->updateTiles as $id => $tile){
|
||||||
if($tile->onUpdate() !== true){
|
if($tile->onUpdate() !== true){
|
||||||
unset($this->updateTiles[$id]);
|
unset($this->updateTiles[$id]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//Timings::$tickTileEntityTimer->stopTiming();
|
||||||
}
|
}
|
||||||
Timings::$tickTileEntityTimer->stopTiming();
|
|
||||||
$this->timings->tileEntityTick->stopTiming();
|
$this->timings->tileEntityTick->stopTiming();
|
||||||
|
|
||||||
$this->timings->doTickTiles->startTiming();
|
$this->timings->doTickTiles->startTiming();
|
||||||
|
@ -158,7 +158,7 @@ abstract class BaseFullChunk implements FullChunk{
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!$this->isLightPopulated()){
|
if(!$this->isLightPopulated() and $this->isPopulated()){
|
||||||
$this->recalculateHeightMap();
|
$this->recalculateHeightMap();
|
||||||
$this->populateSkyLight();
|
$this->populateSkyLight();
|
||||||
$this->setLightPopulated();
|
$this->setLightPopulated();
|
||||||
|
@ -121,7 +121,6 @@ chunk-ticking:
|
|||||||
|
|
||||||
chunk-generation:
|
chunk-generation:
|
||||||
#Max. amount of chunks in the waiting queue to be generated
|
#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
|
queue-size: 8
|
||||||
#Max. amount of chunks in the waiting queue to be populated
|
#Max. amount of chunks in the waiting queue to be populated
|
||||||
population-queue-size: 2
|
population-queue-size: 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user