mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
Index fix
This commit is contained in:
parent
b82e9b2895
commit
2377cf7199
1 changed files with 1 additions and 1 deletions
|
|
@ -191,12 +191,12 @@ class PMFLevel extends PMF{
|
|||
public function loadChunk($X, $Z){
|
||||
$X = (int) $X;
|
||||
$Z = (int) $Z;
|
||||
$index = $this->getIndex($X, $Z);
|
||||
if($this->isChunkLoaded($X, $Z)){
|
||||
return true;
|
||||
}elseif(!isset($this->locationTable[$index])){
|
||||
return false;
|
||||
}
|
||||
$index = $this->getIndex($X, $Z);
|
||||
$info = $this->locationTable[$index];
|
||||
$this->seek($info[0]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue