mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-18 11:45:30 +00:00
Fixed Level::getMiniChunk() parameter bug
This commit is contained in:
parent
bcf6571cc2
commit
f5d69e6905
@ -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…
x
Reference in New Issue
Block a user