mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-23 19:34:15 +00:00
Fixed #249
This commit is contained in:
parent
2b89b51621
commit
651398e500
@ -193,6 +193,8 @@ class PMFLevel extends PMF{
|
|||||||
$Z = (int) $Z;
|
$Z = (int) $Z;
|
||||||
if($this->isChunkLoaded($X, $Z)){
|
if($this->isChunkLoaded($X, $Z)){
|
||||||
return true;
|
return true;
|
||||||
|
}elseif(!isset($this->locationTable[$index])){
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
$index = $this->getIndex($X, $Z);
|
$index = $this->getIndex($X, $Z);
|
||||||
$info = $this->locationTable[$index];
|
$info = $this->locationTable[$index];
|
||||||
|
@ -118,7 +118,7 @@ class Entity extends Position{
|
|||||||
$this->setHealth($this->health, "generic");
|
$this->setHealth($this->health, "generic");
|
||||||
break;
|
break;
|
||||||
case ENTITY_ITEM:
|
case ENTITY_ITEM:
|
||||||
if($data["item"] instanceof Item){
|
if(isset($data["item"]) and ($data["item"] instanceof Item)){
|
||||||
$this->meta = $this->data["item"]->getMetadata();
|
$this->meta = $this->data["item"]->getMetadata();
|
||||||
$this->stack = $this->data["item"]->count;
|
$this->stack = $this->data["item"]->count;
|
||||||
}else{
|
}else{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user