[Fix] Small End Biomes do not generate if BetterEnd is not present
This commit is contained in:
parent
708c0ff38f
commit
91d7931010
2 changed files with 8 additions and 1 deletions
|
@ -43,6 +43,10 @@ public class BCLib implements ModInitializer {
|
|||
.getModContainer("nullscape")
|
||||
.isPresent();
|
||||
|
||||
public static final boolean RUNS_BETTER_END = FabricLoader.getInstance()
|
||||
.getModContainer("betterend")
|
||||
.isPresent();
|
||||
|
||||
@Override
|
||||
public void onInitialize() {
|
||||
LevelGenEvents.register();
|
||||
|
|
|
@ -360,7 +360,10 @@ public class BCLibEndBiomeSource extends BCLBiomeSource implements BiomeSourceWi
|
|||
|
||||
BiomeAPI.BiomeType suggestedType;
|
||||
|
||||
if (config.generatorVersion == BCLEndBiomeSourceConfig.EndBiomeGeneratorType.VANILLA) {
|
||||
// this is a crude way to fix this issue...
|
||||
// basically this condition should not exist. The BetterEnd BiomeDeciders
|
||||
// should do the else part
|
||||
if (!BCLib.RUNS_BETTER_END || config.generatorVersion == BCLEndBiomeSourceConfig.EndBiomeGeneratorType.VANILLA) {
|
||||
int x = (SectionPos.blockToSectionCoord(posX) * 2 + 1) * 8;
|
||||
int z = (SectionPos.blockToSectionCoord(posZ) * 2 + 1) * 8;
|
||||
double d = sampler.erosion().compute(new DensityFunction.SinglePointContext(x, posY, z));
|
||||
|
|
Loading…
Reference in a new issue