mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-25 12:05:13 +01:00
Fix IndexOutOfBoundsException for LegacyBiomes with id 170
This commit is contained in:
parent
c79bd96706
commit
c681a36f3c
@ -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];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user