mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Merge branch 'master' into mcpe-1.0
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user