From 9aaa4c28df7e47592ff468db1a9b67d08b3dacb0 Mon Sep 17 00:00:00 2001 From: FrozenCow Date: Fri, 31 Dec 2010 13:45:33 +0100 Subject: [PATCH] Removed eager loading of chunks, which triggered heavy server load in some cases. --- src/MapTile.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/MapTile.java b/src/MapTile.java index 58324d53..ba389ae4 100644 --- a/src/MapTile.java +++ b/src/MapTile.java @@ -84,7 +84,11 @@ public class MapTile { if(!s.isChunkLoaded(x, 0, z)) { // Will try to load chunk. //log.info("chunk not loaded: " + x + ", " + z + " for tile " + this.toString()); - try { + + return false; + + // Sometimes give very heavy serverload: + /*try { s.loadChunk(x, 0, z); } catch(Exception e) { log.log(Level.SEVERE, "Caught exception from loadChunk!", e); @@ -93,7 +97,7 @@ public class MapTile { if(!s.isChunkLoaded(x, 0, z)) { log.info("Could not load chunk: " + x + ", " + z + " for tile " + this.toString()); return false; - } + }*/ } } }