mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-01 23:59:53 +00:00
Fixed undefined chunk on PMFLevel::getMiniCHunk()
This commit is contained in:
parent
8bbc0af9b5
commit
f9adbf33ec
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user