mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-12-26 02:48:12 +01:00
Fix biome-id -1 crashing the render
This commit is contained in:
parent
4e05ad444b
commit
f52d463458
@ -49,7 +49,7 @@ public void load(ConfigurationNode node) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Biome getBiome(int id) {
|
public Biome getBiome(int id) {
|
||||||
if (id < biomes.length) {
|
if (id > 0 && id < biomes.length) {
|
||||||
Biome biome = biomes[id];
|
Biome biome = biomes[id];
|
||||||
return biome != null ? biome : Biome.DEFAULT;
|
return biome != null ? biome : Biome.DEFAULT;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user