mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Fixed bad PMFLevel::getXZ() logic
This commit is contained in:
parent
e7fcbe206f
commit
ec5f255a71
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue