Cloned the initial empty chunk

This commit is contained in:
Alejandro Liu 2015-03-23 10:28:29 +01:00
parent 1d1a8a316e
commit c68cd2c496

View File

@ -107,7 +107,7 @@ class Flat extends Generator{
}
$this->chunk = $this->level->getChunk($chunkX, $chunkZ);
$this->chunk = clone $this->level->getChunk($chunkX, $chunkZ);
$this->chunk->setGenerated();
for($Z = 0; $Z < 16; ++$Z){