Smaller fixes

This commit is contained in:
Frank 2022-12-03 15:35:34 +01:00
parent bca140dc1b
commit 4b54e37676
2 changed files with 4 additions and 4 deletions

View file

@ -143,7 +143,7 @@ public class BCLBiomeBuilder {
return this;
}
public BCLBiomeBuilder setParent(BCLBiome parent) {
public BCLBiomeBuilder parentBiome(BCLBiome parent) {
this.parent = parent;
return this;
}

View file

@ -24,7 +24,9 @@ class UnboundBCLBiome<T extends BCLBiome> extends BCLBiomeContainer<T> {
biome._setBiomeToRegister(this.supplier.apply(bootstrapContext));
if (dim.is(BiomeAPI.BiomeType.END_LAND)) {
if (hasParent()) {
BiomeAPI.registerSubBiome(bootstrapContext, parentBiome, biome, dim);
} else if (dim.is(BiomeAPI.BiomeType.END_LAND)) {
BiomeAPI.registerEndLandBiome(bootstrapContext, biome);
} else if (dim.is(BiomeAPI.BiomeType.END_VOID)) {
BiomeAPI.registerEndVoidBiome(bootstrapContext, biome);
@ -34,8 +36,6 @@ class UnboundBCLBiome<T extends BCLBiome> extends BCLBiomeContainer<T> {
BiomeAPI.registerEndCenterBiome(bootstrapContext, biome);
} else if (dim.is(BiomeAPI.BiomeType.NETHER)) {
BiomeAPI.registerNetherBiome(bootstrapContext, biome);
} else if (hasParent()) {
BiomeAPI.registerSubBiome(bootstrapContext, parentBiome, biome, dim);
} else {
BiomeAPI.registerBuiltinBiomeAndOverrideIntendedDimension(bootstrapContext, biome, dim);
}