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

View File

@ -49,7 +49,7 @@ public void load(ConfigurationNode node) {
}
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;
}