Fixed Flat generator on existing chunks, region issues

This commit is contained in:
Shoghi Cervantes
2015-01-06 18:46:18 +01:00
parent d4e4430df0
commit 4b73dbd9f8
4 changed files with 19 additions and 22 deletions

View File

@ -112,12 +112,7 @@ class Flat extends Generator{
for($Z = 0; $Z < 16; ++$Z){
for($X = 0; $X < 16; ++$X){
for($y = 0; $y < 128; ++$y){
if($this->structure[$y][0] !== 0){
$this->chunk->setBlockId($X, $y, $Z, $this->structure[$y][0]);
}
if($this->structure[$y][0] !== 0){
$this->chunk->setBlockData($X, $y, $Z, $this->structure[$y][1]);
}
$this->chunk->setBlock($X, $y, $Z, ...$this->structure[$y]);
}
}
}