Protocol changes

This commit is contained in:
Shoghi Cervantes
2015-04-29 17:04:34 +02:00
parent c2b3f7cd7f
commit 978aa2ba0f
8 changed files with 45 additions and 108 deletions

View File

@ -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);
}