diff options
author | EvilSeph <evilseph@gmail.com> | 2012-08-08 03:08:46 -0400 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-08-08 03:08:46 -0400 |
commit | 24809ef98638138a31b79d7db6c2741611a539bc (patch) | |
tree | 6d36d4979e67a99fab370d88335c598acc2c1ada /src/main/java/net/minecraft | |
parent | a133bc718241d7d7353a09cedef1b06e6c92ee22 (diff) | |
download | craftbukkit-24809ef98638138a31b79d7db6c2741611a539bc.tar craftbukkit-24809ef98638138a31b79d7db6c2741611a539bc.tar.gz craftbukkit-24809ef98638138a31b79d7db6c2741611a539bc.tar.lz craftbukkit-24809ef98638138a31b79d7db6c2741611a539bc.tar.xz craftbukkit-24809ef98638138a31b79d7db6c2741611a539bc.zip |
Re-add support for full chunk saving so the server save-alls on stop. Fixes BUKKIT-2158
Diffstat (limited to 'src/main/java/net/minecraft')
-rw-r--r-- | src/main/java/net/minecraft/server/MinecraftServer.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java index 34112583..8c1815b4 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()); |