mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +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){
|
||||
$X = $index >> $this->log;
|
||||
$Z = $index & (($this->log << 1) - 1);
|
||||
$Z = $index & (pow($this->log, 2) - 1);
|
||||
return array($X, $Z);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user