mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-24 01:47:42 +01:00
Re-add support for full chunk saving so the server save-alls on stop. Fixes BUKKIT-2158
This commit is contained in:
parent
a133bc7182
commit
24809ef986
@ -305,9 +305,11 @@ public abstract class MinecraftServer implements Runnable, IMojangStatistics, IC
|
||||
if (worldserver != null) {
|
||||
if (!flag) {
|
||||
log.info("Saving chunks for level \'" + worldserver.getWorldData().getName() + "\'/" + worldserver.worldProvider);
|
||||
worldserver.save(true, (IProgressUpdate) null); // Perform a full save
|
||||
} else {
|
||||
worldserver.save(false, (IProgressUpdate) null); // Queue chunk saving
|
||||
}
|
||||
|
||||
worldserver.save(false, (IProgressUpdate) null); // Queue chunk saving
|
||||
worldserver.saveLevel();
|
||||
|
||||
WorldSaveEvent event = new WorldSaveEvent(worldserver.getWorld());
|
||||
|
Loading…
Reference in New Issue
Block a user