mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-08 19:04:46 +00:00
add option to completly disable mekanism oregen
This commit is contained in:
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();
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user