diff --git a/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/mca/LegacyBiomes.java b/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/mca/LegacyBiomes.java index 902a8562..35330aa5 100644 --- a/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/mca/LegacyBiomes.java +++ b/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/mca/LegacyBiomes.java @@ -109,7 +109,7 @@ public class LegacyBiomes { } public static String idFor(int legacyId) { - if (legacyId < 0 || legacyId > BIOME_IDS.length) legacyId = 0; + if (legacyId < 0 || legacyId >= BIOME_IDS.length) legacyId = 0; return BIOME_IDS[legacyId]; }