Null pointer fix

This commit is contained in:
paulevsGitch 2021-06-07 10:45:10 +03:00
parent cfaf8263d6
commit 1e20595ab5
3 changed files with 7 additions and 6 deletions

View file

@ -86,7 +86,8 @@ public class BCLBiome {
}
public BCLBiome getSubBiome(Random random) {
return subbiomes.get(random);
BCLBiome biome = subbiomes.get(random);
return biome == null ? this : biome;
}
public BCLBiome getParentBiome() {