mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-13 23:15:29 +00:00
PopulationTask: move setPopulated() call to make it more obvious what is going on
This commit is contained in:
parent
398b636759
commit
613bd40601
@ -113,11 +113,12 @@ class PopulationTask extends AsyncTask{
|
|||||||
|
|
||||||
$generator->populateChunk($chunk->getX(), $chunk->getZ());
|
$generator->populateChunk($chunk->getX(), $chunk->getZ());
|
||||||
$chunk = $manager->getChunk($chunk->getX(), $chunk->getZ());
|
$chunk = $manager->getChunk($chunk->getX(), $chunk->getZ());
|
||||||
|
$chunk->setPopulated();
|
||||||
|
|
||||||
$chunk->recalculateHeightMap();
|
$chunk->recalculateHeightMap();
|
||||||
$chunk->populateSkyLight();
|
$chunk->populateSkyLight();
|
||||||
$chunk->setLightPopulated();
|
$chunk->setLightPopulated();
|
||||||
$chunk->setPopulated();
|
|
||||||
$this->chunk = $chunk->fastSerialize();
|
$this->chunk = $chunk->fastSerialize();
|
||||||
|
|
||||||
foreach($chunks as $i => $c){
|
foreach($chunks as $i => $c){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user