From c4138ff4d3a8aabf49ceb326a269caf2245aeabd Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Mon, 16 May 2011 17:47:08 -0400 Subject: [PATCH] Made save-all force saving like it says it does. --- src/main/java/net/minecraft/server/ConsoleCommandHandler.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/net/minecraft/server/ConsoleCommandHandler.java b/src/main/java/net/minecraft/server/ConsoleCommandHandler.java index 48e16ac750..96b3c2d8e9 100644 --- a/src/main/java/net/minecraft/server/ConsoleCommandHandler.java +++ b/src/main/java/net/minecraft/server/ConsoleCommandHandler.java @@ -30,7 +30,9 @@ public class ConsoleCommandHandler { this.server.a(); } else if (s.toLowerCase().startsWith("save-all")) { this.print(s1, "Forcing save.."); + worldserver.y = false; // CraftBukkit - If save-all is used, we can assume saving should be turned on to allow for saving. this.server.saveChunks(); // CraftBukkit - We should save all worlds on save-all. + worldserver.y = true; // CraftBukkit - Once done saving, we should turn it back off to avoid confusion. this.print(s1, "Save complete."); } else if (s.toLowerCase().startsWith("save-off")) { this.print(s1, "Disabling level saving..");