From b059e0b475b50db0fb2a47df4a7a0bbb3e400555 Mon Sep 17 00:00:00 2001 From: David <30806420+davidgamingzz@users.noreply.github.com> Date: Fri, 6 Nov 2020 20:25:37 -0500 Subject: [PATCH] Item: fixed wrong tag being removed during serialization of custom name (#3894) --- src/item/Item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/item/Item.php b/src/item/Item.php index 10f270cce..14c10a570 100644 --- a/src/item/Item.php +++ b/src/item/Item.php @@ -317,7 +317,7 @@ class Item implements \JsonSerializable{ $this->hasCustomName() ? $display->setString(self::TAG_DISPLAY_NAME, $this->getCustomName()) : - $display->removeTag(self::TAG_DISPLAY); + $display->removeTag(self::TAG_DISPLAY_NAME); if(count($this->lore) > 0){ $loreTag = new ListTag();