Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-7571

1.20.4: ItemStack display name deserialization produces different result (legacy color code instead of component json)

XMLWordPrintable

    •  This server is running CraftBukkit version dev-Spigot-864e4ac-c8b4da8 (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT)
    • Yes

      I haven't found the underlying issue/difference yet, but:

      With Spigot 1.20.2, loading this item stack from a config file:

      item:
        ==: org.bukkit.inventory.ItemStack
        v: 3578
        type: STONE
        meta:
          ==: ItemMeta
          meta-type: UNSPECIFIC
          display-name: ยง9Test
      

      yields an item stack with this NBT data:

      On Spigot 1.20.4, this suddently results in an item with this data instead (causing the item to not match existing items on the server):

      Example plugin attached: Command "/test" gives the item loaded from the config file.

            Unassigned Unassigned
            blablubbabc blablubbabc
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: