From f9adbf33ec7a4019ddd83998ee51749cfbef0536 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Sun, 2 Feb 2014 12:05:35 +0100 Subject: [PATCH] Fixed undefined chunk on PMFLevel::getMiniCHunk() --- 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 8490acee9..e4c8824fd 100644 --- a/src/pmf/Level.php +++ b/src/pmf/Level.php @@ -283,7 +283,7 @@ class PMFLevel extends PMF{ return str_repeat("\x00", 8192); } $index = $this->getIndex($X, $Z); - if($this->chunks[$index][$Y] === false){ + if(!isset($this->chunks[$index][$Y]) or $this->chunks[$index][$Y] === false){ return str_repeat("\x00", 8192); } return $this->chunks[$index][$Y];