Fix biome-id -1 crashing the render
This commit is contained in:
parent
4e05ad444b
commit
f52d463458
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue