Fixed some issues with chunks being generated on a loop

This commit is contained in:
Shoghi Cervantes
2014-12-16 02:57:44 +01:00
parent c175485cd8
commit 8e47c93fbc
4 changed files with 7 additions and 5 deletions

View File

@ -2220,8 +2220,8 @@ class Level implements ChunkManager, Metadatable{
public function generateChunk($x, $z){
if(!isset($this->chunkGenerationQueue[Level::chunkHash($x, $z)])){
$this->chunkGenerationQueue[Level::chunkHash($x, $z)] = true;
if(!isset($this->chunkGenerationQueue[$index = Level::chunkHash($x, $z)])){
$this->chunkGenerationQueue[$index] = true;
$this->server->getGenerationManager()->requestChunk($this, $x, $z);
}
}