[Fix] unbound biomes are valid

This commit is contained in:
Frank 2022-07-03 22:14:54 +02:00
parent 1186e962f6
commit 5bf8c4d669

View file

@ -106,7 +106,7 @@ public class BiomePicker {
this.key = biomeRegistry.getResourceKey(biomeRegistry.get(bclBiome.getID())).orElse(null);
this.biome = key != null ? biomeRegistry.getOrCreateHolderOrThrow(key) : null;
this.isValid = key != null;
this.isValid = key != null && biome != null && biome.isBound();
bclBiome.forEachSubBiome((b, w) -> {
if (isAllowed(b))
subbiomes.add(create(b), w);