Fix handling of new, additional buiomes

This commit is contained in:
Mike Primm 2021-12-05 05:01:59 -06:00
parent 37fd064434
commit f56f4378c5
8 changed files with 40 additions and 20 deletions

View file

@ -837,13 +837,14 @@ public class DynmapPlugin extends JavaPlugin implements DynmapAPI {
else {
bmap = BiomeMap.byBiomeID(i);
}
if (bmap.isDefault()) {
if (bmap.isDefault() || (bmap == BiomeMap.NULL)) {
String id = helper.getBiomeBaseIDString(bb);
if(id == null) {
if (id == null) {
id = "BIOME_" + i;
}
bmap = new BiomeMap((rl != null) ? BiomeMap.NO_INDEX : i, id, tmp, hum, rl);
Log.verboseinfo("Add custom biome [" + bmap.toString() + "] (" + i + ") rl=" + rl);
//Log.info(String.format("rl=%s, bmap=%s", rl, bmap));
cnt++;
}
else {