mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-28 13:15:30 +01:00
Fix trap on biome fix on map render without biome data
This commit is contained in:
parent
3f2ee0fc76
commit
68cb59997e
@ -482,7 +482,7 @@ public class NewMapChunkCache implements MapChunkCache {
|
|||||||
else
|
else
|
||||||
ss = w.getEmptyChunkSnapshot(chunk.x, chunk.z, biome, biomeraw);
|
ss = w.getEmptyChunkSnapshot(chunk.x, chunk.z, biome, biomeraw);
|
||||||
if(ss != null) {
|
if(ss != null) {
|
||||||
if(!biomefixtested) /* Test for biome fix */
|
if((!biomefixtested) && biome) /* Test for biome fix */
|
||||||
testIfBiomeFixNeeded(w, ss);
|
testIfBiomeFixNeeded(w, ss);
|
||||||
if(biomefixneeded && biome) /* If needed, apply it */
|
if(biomefixneeded && biome) /* If needed, apply it */
|
||||||
doBiomeFix(w, ss);
|
doBiomeFix(w, ss);
|
||||||
@ -557,6 +557,7 @@ public class NewMapChunkCache implements MapChunkCache {
|
|||||||
for(int j = 0; j < 16; j++) {
|
for(int j = 0; j < 16; j++) {
|
||||||
if(w.getBiome((ss.getX()<<4)+i, (ss.getZ()<<4)+j) != ss.getBiome(i, j)) { /* Mismatch? */
|
if(w.getBiome((ss.getX()<<4)+i, (ss.getZ()<<4)+j) != ss.getBiome(i, j)) { /* Mismatch? */
|
||||||
biomefixneeded = true;
|
biomefixneeded = true;
|
||||||
|
Log.info("Biome Snapshot fix active");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user