Fix IndexOutOfBoundsException for LegacyBiomes with id 170

This commit is contained in:
Lukas Rieger (Blue) 2021-11-27 23:30:52 +01:00
parent c79bd96706
commit c681a36f3c
No known key found for this signature in database
GPG Key ID: 2D09EC5ED2687FF2

View File

@ -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];
}