mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-05 17:41:46 +00:00
Fixed bad PMFLevel::getXZ() logic
This commit is contained in:
parent
e7fcbe206f
commit
ec5f255a71
@ -124,7 +124,7 @@ class PMFLevel extends PMF{
|
|||||||
|
|
||||||
public function getXZ($index, &$X = null, &$Z = null){
|
public function getXZ($index, &$X = null, &$Z = null){
|
||||||
$X = $index >> $this->log;
|
$X = $index >> $this->log;
|
||||||
$Z = $index & (($this->log << 1) - 1);
|
$Z = $index & (pow($this->log, 2) - 1);
|
||||||
return array($X, $Z);
|
return array($X, $Z);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user