mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-24 17:47:40 +01:00
Merge pull request #3685 from ein-stein-chen/fix-biome-color-loading
Fix loading of biome colorschemes
This commit is contained in:
commit
b6d0c816a4
@ -128,7 +128,7 @@ public class ColorScheme {
|
||||
id = -1;
|
||||
BiomeMap[] bm = BiomeMap.values();
|
||||
for (int i = 0; i < bm.length; i++) {
|
||||
if (bm[i].toString().equalsIgnoreCase(bio)) {
|
||||
if (bm[i].getId().equalsIgnoreCase(bio)) {
|
||||
id = i;
|
||||
break;
|
||||
} else if (bio.equalsIgnoreCase("BIOME_" + i)) {
|
||||
|
@ -297,6 +297,9 @@ public class BiomeMap {
|
||||
public boolean isDefault() {
|
||||
return isDef;
|
||||
}
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
public String toString() {
|
||||
return String.format("%s(%s)", id, resourcelocation);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user