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;
|
||||
if($this->isChunkLoaded($X, $Z)){
|
||||
return true;
|
||||
}elseif(!isset($this->locationTable[$index])){
|
||||
return false;
|
||||
}
|
||||
$index = $this->getIndex($X, $Z);
|
||||
$info = $this->locationTable[$index];
|
||||
|
@ -118,7 +118,7 @@ class Entity extends Position{
|
||||
$this->setHealth($this->health, "generic");
|
||||
break;
|
||||
case ENTITY_ITEM:
|
||||
if($data["item"] instanceof Item){
|
||||
if(isset($data["item"]) and ($data["item"] instanceof Item)){
|
||||
$this->meta = $this->data["item"]->getMetadata();
|
||||
$this->stack = $this->data["item"]->count;
|
||||
}else{
|
||||
|
Loading…
x
Reference in New Issue
Block a user