From 7499e2e0dfb5c836678e5a4335ccde314f5ed0ed Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Sun, 5 Jun 2011 11:54:56 -0400 Subject: [PATCH] Fixed chunks saving more than they need to. Thanks Rigby! --- .../java/net/minecraft/server/MinecraftServer.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java index c4a0d363ec..cfd527efa6 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java @@ -265,13 +265,11 @@ public class MinecraftServer implements Runnable, ICommandListener { this.serverConfigurationManager.savePlayers(); } - // CraftBukkit start - for (int i = 0; i < this.worlds.size(); ++i) { - WorldServer worldserver = this.worlds.get(i); + // CraftBukkit start - multiworld is handled in saveChunks() already. + WorldServer worldserver = this.worlds.get(0); - if (worldserver != null) { - this.saveChunks(); - } + if (worldserver != null) { + this.saveChunks(); } // CraftBukkit end }