[Feature] Reconfigure default WorldPresets if Nullscape (Mod Version) is present
This commit is contained in:
parent
32e7ffec69
commit
020b8880e1
2 changed files with 7 additions and 2 deletions
|
@ -39,6 +39,10 @@ public class BCLib implements ModInitializer {
|
|||
public static final String MOD_ID = "bclib";
|
||||
public static final Logger LOGGER = new Logger(MOD_ID);
|
||||
|
||||
public static final boolean RUNS_NULLSCAPE = FabricLoader.getInstance()
|
||||
.getModContainer("nullscape")
|
||||
.isPresent();
|
||||
|
||||
@Override
|
||||
public void onInitialize() {
|
||||
LevelGenEvents.register();
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package org.betterx.bclib.api.v2.generator.config;
|
||||
|
||||
import org.betterx.bclib.BCLib;
|
||||
import org.betterx.bclib.api.v2.generator.BCLibEndBiomeSource;
|
||||
import org.betterx.bclib.api.v2.generator.BiomePicker;
|
||||
import org.betterx.bclib.api.v2.generator.map.hex.HexBiomeMap;
|
||||
|
@ -39,8 +40,8 @@ public class BCLEndBiomeSourceConfig implements BiomeSourceConfig<BCLibEndBiomeS
|
|||
);
|
||||
public static final BCLEndBiomeSourceConfig MINECRAFT_18 = new BCLEndBiomeSourceConfig(
|
||||
EndBiomeMapType.HEX,
|
||||
EndBiomeGeneratorType.PAULEVS,
|
||||
true,
|
||||
BCLib.RUNS_NULLSCAPE ? EndBiomeGeneratorType.VANILLA : EndBiomeGeneratorType.PAULEVS,
|
||||
BCLib.RUNS_NULLSCAPE ? false : true,
|
||||
MINECRAFT_17.innerVoidRadiusSquared,
|
||||
MINECRAFT_17.centerBiomesSize,
|
||||
MINECRAFT_17.voidBiomesSize,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue