Merge branch 'master' into mcpe-1.0

This commit is contained in:
Dylan K. Taylor
2017-01-10 10:55:05 +00:00
2 changed files with 4 additions and 6 deletions

View File

@ -560,7 +560,7 @@ class Item implements ItemIds, \JsonSerializable{
$this->clearCustomName();
}
if(!($hadCompoundTag = $this->hasCompoundTag())){
if(!$this->hasCompoundTag()){
$tag = new CompoundTag("", []);
}else{
$tag = $this->getNamedTag();
@ -574,9 +574,7 @@ class Item implements ItemIds, \JsonSerializable{
]);
}
if(!$hadCompoundTag){
$this->setCompoundTag($tag);
}
$this->setCompoundTag($tag);
return $this;
}