From 24809ef98638138a31b79d7db6c2741611a539bc Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Wed, 8 Aug 2012 03:08:46 -0400 Subject: [PATCH] Re-add support for full chunk saving so the server save-alls on stop. Fixes BUKKIT-2158 --- src/main/java/net/minecraft/server/MinecraftServer.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java index 3411258318..8c1815b4e5 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java @@ -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());