[SPIGOT-6967] Saving Disabled always set to true when unloadWorld(save = true) called Created: 16/Mar/22  Updated: 25/Dec/24

Status: Open
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Philip Kelley Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: Craftbukkit, world

Version: Since 1.14 - 1.18.2
Guidelines Read: Yes

 Description   

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.


Generated at Thu Apr 03 16:14:32 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.