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

Enchantment data of items will not be saved correctly when saved in YAML configuration file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • 3513-Spigot-fa893f0-576a037 (MC: 1.19) (Implementing API version 1.19-R0.1-SNAPSHOT)
    • Yes

      Saving and reading enchantements of item stacks to and from YAML configuration files does not work.

      If MENDING is saved in an item stack in the configuration file, the read item stack will have a PIRCING enchantment instead of the MENDING enchantment. If an item stack has a PIRCING enchantment it will be saved as a MENDING enchantment in the YAML configuration.

      This also works with MENDING [Item] <-> VANISHING_CURSE [YAML] (Shown in test plugin)

      It seems as if the conversion between the enchantment enum value string to the coresponding enum value objects is not working correctly.

      The config file contains the result after the plugin was loaded on my 1.19 spigot test server.

        1. bugreport.jar
          2 kB
        2. config.yml
          0.2 kB
        3. Plugin.java
          0.4 kB

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

              Created:
              Updated:
              Resolved: