From 771ef6e16eb7c5e727acd0084f2c17401b19d434 Mon Sep 17 00:00:00 2001 From: Glitchfinder Date: Thu, 10 Jan 2013 11:13:18 -0800 Subject: [PATCH 1/2] Disabling the place store saveWorld call for when a world is saved due to excessive lag. --- .../java/com/gmail/nossr50/listeners/WorldListener.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/listeners/WorldListener.java b/src/main/java/com/gmail/nossr50/listeners/WorldListener.java index dbdb30b2a..70589f6ab 100644 --- a/src/main/java/com/gmail/nossr50/listeners/WorldListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/WorldListener.java @@ -38,10 +38,10 @@ public class WorldListener implements Listener { mcMMO.placeStore.unloadWorld(event.getWorld()); } - @EventHandler - public void onWorldSave(WorldSaveEvent event) { - mcMMO.placeStore.saveWorld(event.getWorld()); - } + //@EventHandler + //public void onWorldSave(WorldSaveEvent event) { + // mcMMO.placeStore.saveWorld(event.getWorld()); + //} @EventHandler public void onChunkUnload(ChunkUnloadEvent event) { From 8267a10f418e6b7ecdf62b8b49cb63325479dc23 Mon Sep 17 00:00:00 2001 From: Glitchfinder Date: Thu, 10 Jan 2013 11:23:58 -0800 Subject: [PATCH 2/2] Adding an explanation in the comments. --- src/main/java/com/gmail/nossr50/listeners/WorldListener.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/listeners/WorldListener.java b/src/main/java/com/gmail/nossr50/listeners/WorldListener.java index 70589f6ab..7c634b11a 100644 --- a/src/main/java/com/gmail/nossr50/listeners/WorldListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/WorldListener.java @@ -38,6 +38,8 @@ public class WorldListener implements Listener { mcMMO.placeStore.unloadWorld(event.getWorld()); } + // This gets called every 45 seconds, by default. + // The call can and does result in excessive lag, especially on larger servers. //@EventHandler //public void onWorldSave(WorldSaveEvent event) { // mcMMO.placeStore.saveWorld(event.getWorld());