summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/MinecraftServer.java
diff options
context:
space:
mode:
authorEvilSeph <evilseph@unaligned.org>2011-02-25 12:15:43 -0500
committerEvilSeph <evilseph@unaligned.org>2011-02-25 14:36:09 -0500
commit43e36b5bdc63178350c7f0982022954468f9b774 (patch)
treefd52c74d0d22a8a36c0ca0007668f662c0c8efda /src/main/java/net/minecraft/server/MinecraftServer.java
parent685d4dbb3f6c4f6f81a971aba1cb7670f6541bf4 (diff)
downloadcraftbukkit-43e36b5bdc63178350c7f0982022954468f9b774.tar
craftbukkit-43e36b5bdc63178350c7f0982022954468f9b774.tar.gz
craftbukkit-43e36b5bdc63178350c7f0982022954468f9b774.tar.lz
craftbukkit-43e36b5bdc63178350c7f0982022954468f9b774.tar.xz
craftbukkit-43e36b5bdc63178350c7f0982022954468f9b774.zip
All worlds should be saved on save-all. Player data should be saved when a save occurs.
Diffstat (limited to 'src/main/java/net/minecraft/server/MinecraftServer.java')
-rw-r--r--src/main/java/net/minecraft/server/MinecraftServer.java4
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 71e6a327..07cd1d29 100644
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
@@ -198,7 +198,7 @@ public class MinecraftServer implements Runnable, ICommandListener {
server.loadPlugins(); // CraftBukkit
}
- private void f() {
+ void f() { //CraftBukkit - private -> default
a.info("Saving chunks");
// CraftBukkit start
@@ -209,6 +209,8 @@ public class MinecraftServer implements Runnable, ICommandListener {
WorldEvent event = new WorldEvent( Event.Type.WORLD_SAVED, world.getWorld() );
server.getPluginManager().callEvent( event );
}
+
+ this.f.d(); // CraftBukkit - player data should be saved whenever a save happens.
// CraftBukkit end
}