mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
Fixed #249
This commit is contained in:
parent
2b89b51621
commit
651398e500
2 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue