This commit is contained in:
Shoghi Cervantes Pueyo
2013-05-17 12:33:42 +02:00
parent 2b89b51621
commit 651398e500
2 changed files with 3 additions and 1 deletions

View File

@ -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{