mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-11 14:05:35 +00:00
Detect non loaded chunks
This commit is contained in:
parent
4564765470
commit
7bbda6dd67
@ -292,7 +292,7 @@ class PMFLevel extends PMF{
|
|||||||
return array(AIR, 0);
|
return array(AIR, 0);
|
||||||
}
|
}
|
||||||
$index = $this->getIndex($X, $Z);
|
$index = $this->getIndex($X, $Z);
|
||||||
if($this->chunks[$index] === false){
|
if(!isset($this->chunks[$index]) or $this->chunks[$index] === false){
|
||||||
if($this->loadChunk($X, $Z) === false){
|
if($this->loadChunk($X, $Z) === false){
|
||||||
return array(AIR, 0);
|
return array(AIR, 0);
|
||||||
}
|
}
|
||||||
@ -324,7 +324,7 @@ class PMFLevel extends PMF{
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$index = $this->getIndex($X, $Z);
|
$index = $this->getIndex($X, $Z);
|
||||||
if($this->chunks[$index] === false){
|
if(!isset($this->chunks[$index]) or $this->chunks[$index] === false){
|
||||||
if($this->loadChunk($X, $Z) === false){
|
if($this->loadChunk($X, $Z) === false){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user