Removed eager loading of chunks, which triggered heavy server load in some cases.

This commit is contained in:
FrozenCow 2010-12-31 13:45:33 +01:00
parent 6b6979ac3a
commit 9aaa4c28df
1 changed files with 6 additions and 2 deletions

View File

@ -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;
}
}*/
}
}
}