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

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None
    • Environment:

      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
          Nathan Wolf
        2. nomigrate.yml
          0.3 kB
          Nathan Wolf

          [SPIGOT-4156] Serialized items with damage values and meta do not migrate to 1.13

          Nathan Wolf added a comment -

          Thank you, this resolved my issue- tested in 

          git-Spigot-0b44fa0-1ef1ffd

          Nathan Wolf added a comment - Thank you, this resolved my issue- tested in  git-Spigot-0b44fa0-1ef1ffd

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

              Created:
              Updated:
              Resolved: