Make sure Biomes with a parent are added to the set of possible biomes

This commit is contained in:
Frank 2022-12-04 23:23:12 +01:00
parent fb65debd87
commit 70b3600072

View file

@ -174,12 +174,14 @@ public abstract class BCLBiomeSource extends BiomeSource implements BiomeSourceW
foundBCLBiome = true; foundBCLBiome = true;
} }
boolean didAdd = false; boolean isPossible;
if (!bclBiome.hasParentBiome()) { if (!bclBiome.hasParentBiome()) {
didAdd = pickerAdder.add(bclBiome, pickerEntry.getKey(), pickerEntry.getValue()); isPossible = pickerAdder.add(bclBiome, pickerEntry.getKey(), pickerEntry.getValue());
} else {
isPossible = true;
} }
if (didAdd) { if (isPossible) {
allBiomes.add(biomes.getHolderOrThrow(biomeEntry.getKey())); allBiomes.add(biomes.getHolderOrThrow(biomeEntry.getKey()));
} }
} }
@ -271,6 +273,7 @@ public abstract class BCLBiomeSource extends BiomeSource implements BiomeSourceW
} }
} }
return defaultType; return defaultType;
} }