add option to completly disable mekanism oregen

This commit is contained in:
maggi373 committed 2024-10-17 00:42:25 +02:00
1 parent e121baacea
commit a158a9ac02
3 files changed
+6 -1

No files matched your search

@@ -72,6 +72,8 @@ public class MekanismConfig
}
public static class mekce {
public static boolean enableoregen;
public static boolean enableBoPProgression;
public static boolean EnableQuartzCompat;
public static boolean EnableDiamondCompat;
@@ -251,6 +251,7 @@ public class CommonProxy implements IGuiProvider
public void loadConfiguration()
{
general.updateNotifications = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "UpdateNotificationsv2", true).getBoolean();
mekce.enableoregen = Mekanism.configuration.get("mekce", "EnableOreGen", true, "disables completely the oregen").getBoolean();
general.controlCircuitOreDict = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "ControlCircuitOreDict", true).getBoolean();
general.logPackets = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "LogPackets", false).getBoolean();
general.dynamicTankEasterEgg = Mekanism.configuration.get(Configuration.CATEGORY_GENERAL, "DynamicTankEasterEgg", false).getBoolean();
+3 -1
View File
@@ -1452,7 +1452,9 @@ public class Mekanism
Mekanism.proxy.Cape();
//Register the mod's world generators
GameRegistry.registerWorldGenerator(genHandler, 1);
if (MekanismConfig.mekce.enableoregen) {
GameRegistry.registerWorldGenerator(genHandler, 1);
}
//Register the mod's GUI handler
NetworkRegistry.INSTANCE.registerGuiHandler(this, new CoreGuiHandler());