Item: fixed wrong tag being removed during serialization of custom name (#3894)

This commit is contained in:
David 2020-11-06 20:25:37 -05:00 committed by GitHub
parent beb6a50883
commit b059e0b475
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();