mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-17 04:06:54 +00:00
Item: fixed wrong tag being removed during serialization of custom name (#3894)
This commit is contained in:
@@ -317,7 +317,7 @@ class Item implements \JsonSerializable{
|
|||||||
|
|
||||||
$this->hasCustomName() ?
|
$this->hasCustomName() ?
|
||||||
$display->setString(self::TAG_DISPLAY_NAME, $this->getCustomName()) :
|
$display->setString(self::TAG_DISPLAY_NAME, $this->getCustomName()) :
|
||||||
$display->removeTag(self::TAG_DISPLAY);
|
$display->removeTag(self::TAG_DISPLAY_NAME);
|
||||||
|
|
||||||
if(count($this->lore) > 0){
|
if(count($this->lore) > 0){
|
||||||
$loreTag = new ListTag();
|
$loreTag = new ListTag();
|
||||||
|
Reference in New Issue
Block a user