mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-24 21:49:43 +00:00
Fixed Level::getMiniChunk() parameter bug
This commit is contained in:
parent
bcf6571cc2
commit
f5d69e6905
2 changed files with 2 additions and 2 deletions
|
|
@ -351,7 +351,7 @@ class Level{
|
||||||
if(!isset($this->level)){
|
if(!isset($this->level)){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return $this->level->getMiniChunk($X, $Z);
|
return $this->level->getMiniChunk($X, $Y, $Z);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setMiniChunk($X, $Y, $Z, $data){
|
public function setMiniChunk($X, $Y, $Z, $data){
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,7 @@ class SuperflatGenerator implements LevelGenerator{
|
||||||
$blocks .= chr($this->structure[$y]->getID());
|
$blocks .= chr($this->structure[$y]->getID());
|
||||||
$metas .= substr(dechex($this->structure[$y]->getMetadata()), -1);
|
$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";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue