This commit is contained in:
kotyaralih 2021-12-28 10:40:44 -08:00
parent 75bab57b3f
commit ed8c2eeccd
2 changed files with 7 additions and 5 deletions

View file

@ -200,14 +200,16 @@ class PMFLevel extends PMF{
}
public function loadChunk($X, $Z){
$X = (int) $X;
$Z = (int) $Z;
$index = $this->getIndex($X, $Z);
$index = self::getIndex($X, $Z);
if($this->isChunkLoaded($X, $Z)){
return true;
}elseif(!isset($this->locationTable[$index])){
return false;
}
$info = $this->locationTable[$index];
$this->seek($info[0]);