mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-28 14:19:53 +00:00
Item: fixed wrong tag being removed during serialization of custom name (#3894)
This commit is contained in:
parent
beb6a50883
commit
b059e0b475
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user