Fix biome-id -1 crashing the render

This commit is contained in:
Blue (Lukas Rieger) 2021-11-09 00:09:43 +01:00
parent 4e05ad444b
commit f52d463458
No known key found for this signature in database
GPG Key ID: 904C4995F9E1F800
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ public class BiomeConfig {
}
public Biome getBiome(int id) {
if (id < biomes.length) {
if (id > 0 && id < biomes.length) {
Biome biome = biomes[id];
return biome != null ? biome : Biome.DEFAULT;
}