mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 04:15:04 +00:00
Fixed undefined chunk on PMFLevel::getMiniCHunk()
This commit is contained in:
@@ -283,7 +283,7 @@ class PMFLevel extends PMF{
|
|||||||
return str_repeat("\x00", 8192);
|
return str_repeat("\x00", 8192);
|
||||||
}
|
}
|
||||||
$index = $this->getIndex($X, $Z);
|
$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 str_repeat("\x00", 8192);
|
||||||
}
|
}
|
||||||
return $this->chunks[$index][$Y];
|
return $this->chunks[$index][$Y];
|
||||||
|
Reference in New Issue
Block a user