mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
X,Z offset fixed
This commit is contained in:
@ -50,6 +50,13 @@ class LevelAPI{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getBlock($x, $y, $z){
|
||||
if($this->check()){
|
||||
return $this->map->getBlock($x, $y, $z);
|
||||
}
|
||||
return array(0,0);
|
||||
}
|
||||
|
||||
public function getOrderedChunk($X, $Z, $columnsPerPacket = 2){
|
||||
$columnsPerPacket = max(1, (int) $columnsPerPacket);
|
||||
$c = $this->getChunk($X, $Z);
|
||||
|
Reference in New Issue
Block a user