Fixed Level::getMiniChunk() parameter bug

This commit is contained in:
Shoghi Cervantes 2013-12-01 21:32:22 +01:00
parent bcf6571cc2
commit f5d69e6905
2 changed files with 2 additions and 2 deletions

View File

@ -351,7 +351,7 @@ class Level{
if(!isset($this->level)){
return false;
}
return $this->level->getMiniChunk($X, $Z);
return $this->level->getMiniChunk($X, $Y, $Z);
}
public function setMiniChunk($X, $Y, $Z, $data){

View File

@ -92,7 +92,7 @@ class SuperflatGenerator implements LevelGenerator{
$blocks .= chr($this->structure[$y]->getID());
$metas .= substr(dechex($this->structure[$y]->getMetadata()), -1);
}
$this->chunks[$Y] .= $blocks.Utils::hexToStr($metas)."\x00\x00\x00\x00\x00\x00\x00\x00";
$this->chunks[$Y] .= $blocks.hex2bin($metas)."\x00\x00\x00\x00\x00\x00\x00\x00";
}
}
}