Fixed undefined chunk on PMFLevel::getMiniCHunk()

This commit is contained in:
Shoghi Cervantes 2014-02-02 12:05:35 +01:00
parent 8bbc0af9b5
commit f9adbf33ec

View File

@ -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];