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

Serialized items with damage values and meta do not migrate to 1.13

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • Linux, Mac OS

    • git-Spigot-0b44fa0-9646d8d
    • Yes

      I have some serialized items packaged with my plugin in .yml files. They have a damage specified as well as meta for display name and lore.

      The damage value does not get read when deserializing in 1.13, causing the item to come back undamaged.

      The attached nomigrate.yml file demonstrates the problem if the it is loaded into a ConfigurationSection and getItemStack("item") is used to retrieve the serialized item.

      The fixed.yml file shows a fixed version where I manually added a Damage tag in the meta section. This one works correctly.

        1. fixed.yml
          0.3 kB
        2. nomigrate.yml
          0.3 kB

            Unassigned Unassigned
            NathanWolf Nathan Wolf
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: