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

Reloading configuration does not clear previous values

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • None
    • git-Spigot-57bbdd8-dea4138 (MC: 1.16.3)
    • Yes

      All YamlConfiguration.load methods state the following in their Javadocs:

      All the values contained within this configuration will be removed, leaving only settings and defaults, and the new values will be loaded from the given file.
      

      Unfortunately, this is incorrect, none of the configuration values are removed as clear is not called on the underlying map.

            Unassigned Unassigned
            DarkPyves Pyves
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: