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

Saving Disabled always set to true when unloadWorld(save = true) called

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • Since 1.14 - 1.18.2
    • Yes

      When calling Bukkit.unloadWorld with save = true, the implementation method in CraftServer calls NMS ServerLevel's save method, with savingDisabled = true, which skips the actual saving logic of ServerLevel, meaning the world isn't actually saved properly.

      A patch has been PR'ed to Paper to fix this by changing savingDisabled to false, this patch has been tested and doesn't break anything else from what I can tell on initial testing, and has now been proven to fix a bug where worlds weren't saving properly when unloaded through the API this way.

            Unassigned Unassigned
            ComputerNerd100 Philip Kelley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: