mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Protocol changes
This commit is contained in:
@ -2408,13 +2408,13 @@ class Level implements ChunkManager, Metadatable{
|
||||
}
|
||||
|
||||
Timings::$generationTimer->startTiming();
|
||||
if(!$this->isChunkPopulated($x, $z)){
|
||||
if(!$this->getChunk($x, $z, true)->isPopulated()){
|
||||
$populate = true;
|
||||
for($xx = -1; $xx <= 1; ++$xx){
|
||||
for($zz = -1; $zz <= 1; ++$zz){
|
||||
if(isset($this->chunkPopulationLock[Level::chunkHash($x + $xx, $z + $zz)])){
|
||||
$populate = false;
|
||||
}elseif(!$this->isChunkGenerated($x + $xx, $z + $zz)){
|
||||
}elseif(!$this->getChunk($x + $xx, $z + $zz, true)->isGenerated()){
|
||||
$populate = false;
|
||||
$this->generateChunk($x + $xx, $z + $zz, $force);
|
||||
}
|
||||
|
Reference in New Issue
Block a user