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

Lore deserializes incorrectly from previous versions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • git-Spigot-8043ebc-dd99c5b (MC: 1.14.1)
    • Yes

      Saving a List of ItemStack to file in 1.13.2 and then loading it in 1.14.1 shows json on the lore.

      It works fine for items saved in 1.14.1, but not when you change versions.

      This is the code I use to save and load: https://pastebin.com/2BvgRjct

       

      I've attached a plugin to reproduce the bug, the source files are included inside the jar.

      Reproduction:

       - Start plugin on 1.13.2

       - Use command /vinv - This opens a virtual inventory

       - Place an item with Lore inside the inventory and close the inventory

       - This has saved a file named "vinv" to the root of the server

       - You can type /vinv again to see that it works fine on 1.13.2

       - Load up the plugin on 1.14.1, making sure the "vinv" file is on the root directory

       - Use command /vinv to open the inventory and see that Lore contains json

       

      I have also attached a "vinv" file with items which have Lore. You can put that into the server root directory and load it on 1.13.2 to see items with lore.

       

      What lore looks like after loading in 1.14.1

       

        1. vinv
          0.9 kB
          SirPsp

            Unassigned Unassigned
            SirPsp SirPsp
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: