mirror of
https://github.com/webbukkit/dynmap.git
synced 2025-01-12 02:40:56 +01:00
Removed eager loading of chunks, which triggered heavy server load in some cases.
This commit is contained in:
parent
6b6979ac3a
commit
9aaa4c28df
@ -84,7 +84,11 @@ public class MapTile {
|
|||||||
if(!s.isChunkLoaded(x, 0, z)) {
|
if(!s.isChunkLoaded(x, 0, z)) {
|
||||||
// Will try to load chunk.
|
// Will try to load chunk.
|
||||||
//log.info("chunk not loaded: " + x + ", " + z + " for tile " + this.toString());
|
//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);
|
s.loadChunk(x, 0, z);
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
log.log(Level.SEVERE, "Caught exception from loadChunk!", e);
|
log.log(Level.SEVERE, "Caught exception from loadChunk!", e);
|
||||||
@ -93,7 +97,7 @@ public class MapTile {
|
|||||||
if(!s.isChunkLoaded(x, 0, z)) {
|
if(!s.isChunkLoaded(x, 0, z)) {
|
||||||
log.info("Could not load chunk: " + x + ", " + z + " for tile " + this.toString());
|
log.info("Could not load chunk: " + x + ", " + z + " for tile " + this.toString());
|
||||||
return false;
|
return false;
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user