SWEEPING_EDGE Enchant broke on deserialization

XMLWordPrintable

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

       

       

      The 1.12 update broke deserializing SWEEPING_EDGE enchantment books here:

      https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/commits/5195487ec6c01a80e3a2fca8c4acfc6b9524fcf5#src/main/java/org/bukkit/craftbukkit/enchantments/CraftEnchantment.java

       

      The enchant name changed from SWEEPING to SWEEPING_EDGE, so any items serialized before 1.12 will lose the SWEEPING_EDGE enchantment if they are deserialized.

       

      Example item in JSON format: 

      {"item":{"==":"org.bukkit.inventory.ItemStack","type":"ENCHANTED_BOOK","meta":{"==":"ItemMeta","meta-type":"ENCHANTED","stored-enchants":{"SWEEPING":3}}}}

            Assignee:
            Unassigned
            Reporter:
            Daniel Ennis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: