From 2377cf719932022eb16434ae20f069da3dc805f3 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Fri, 17 May 2013 13:19:44 +0200 Subject: [PATCH] Index fix --- src/pmf/Level.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pmf/Level.php b/src/pmf/Level.php index 13072d15c6..b389c9a836 100644 --- a/src/pmf/Level.php +++ b/src/pmf/Level.php @@ -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]);