mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
X,Z offset fixed
This commit is contained in:
parent
f1b2bc248f
commit
72c4cc7a30
5 changed files with 19 additions and 9 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue