Skip to content

Commit f52d463

Browse files
committed
Fix biome-id -1 crashing the render
1 parent 4e05ad4 commit f52d463

File tree

1 file changed

+1
-1
lines changed
  • BlueMapCore/src/main/java/de/bluecolored/bluemap/core/resourcepack

1 file changed

+1
-1
lines changed

BlueMapCore/src/main/java/de/bluecolored/bluemap/core/resourcepack/BiomeConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public void load(ConfigurationNode node) {
4949
}
5050

5151
public Biome getBiome(int id) {
52-
if (id < biomes.length) {
52+
if (id > 0 && id < biomes.length) {
5353
Biome biome = biomes[id];
5454
return biome != null ? biome : Biome.DEFAULT;
5555
}

0 commit comments

Comments
 (0)