Smaller fixes
This commit is contained in:
parent
bca140dc1b
commit
4b54e37676
2 changed files with 4 additions and 4 deletions
|
@ -143,7 +143,7 @@ public class BCLBiomeBuilder {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BCLBiomeBuilder setParent(BCLBiome parent) {
|
public BCLBiomeBuilder parentBiome(BCLBiome parent) {
|
||||||
this.parent = parent;
|
this.parent = parent;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,7 +24,9 @@ class UnboundBCLBiome<T extends BCLBiome> extends BCLBiomeContainer<T> {
|
||||||
|
|
||||||
biome._setBiomeToRegister(this.supplier.apply(bootstrapContext));
|
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);
|
BiomeAPI.registerEndLandBiome(bootstrapContext, biome);
|
||||||
} else if (dim.is(BiomeAPI.BiomeType.END_VOID)) {
|
} else if (dim.is(BiomeAPI.BiomeType.END_VOID)) {
|
||||||
BiomeAPI.registerEndVoidBiome(bootstrapContext, biome);
|
BiomeAPI.registerEndVoidBiome(bootstrapContext, biome);
|
||||||
|
@ -34,8 +36,6 @@ class UnboundBCLBiome<T extends BCLBiome> extends BCLBiomeContainer<T> {
|
||||||
BiomeAPI.registerEndCenterBiome(bootstrapContext, biome);
|
BiomeAPI.registerEndCenterBiome(bootstrapContext, biome);
|
||||||
} else if (dim.is(BiomeAPI.BiomeType.NETHER)) {
|
} else if (dim.is(BiomeAPI.BiomeType.NETHER)) {
|
||||||
BiomeAPI.registerNetherBiome(bootstrapContext, biome);
|
BiomeAPI.registerNetherBiome(bootstrapContext, biome);
|
||||||
} else if (hasParent()) {
|
|
||||||
BiomeAPI.registerSubBiome(bootstrapContext, parentBiome, biome, dim);
|
|
||||||
} else {
|
} else {
|
||||||
BiomeAPI.registerBuiltinBiomeAndOverrideIntendedDimension(bootstrapContext, biome, dim);
|
BiomeAPI.registerBuiltinBiomeAndOverrideIntendedDimension(bootstrapContext, biome, dim);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue