Null pointer fix
This commit is contained in:
parent
cfaf8263d6
commit
1e20595ab5
3 changed files with 7 additions and 6 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue