diff --git a/src/pocketmine/item/Item.php b/src/pocketmine/item/Item.php index 4d264fd6a..2e742c879 100644 --- a/src/pocketmine/item/Item.php +++ b/src/pocketmine/item/Item.php @@ -559,7 +559,7 @@ class Item implements ItemIds, \JsonSerializable{ $this->clearCustomName(); } - if($this->hasCompoundTag()){ + if(!$this->hasCompoundTag()){ $tag = new CompoundTag("", []); }else{ $tag = $this->getNamedTag();