aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/GT_Mod.java
diff options
context:
space:
mode:
authorDraknyte1 <Draknyte1@hotmail.com>2017-06-14 18:55:26 +1000
committerDraknyte1 <Draknyte1@hotmail.com>2017-06-14 18:55:26 +1000
commitd1eea59fe744c1b5b2c5dae324b6887f985a6569 (patch)
tree0353bb8a5d55c402265a7394e3df4b4e2f1ebe55 /src/main/java/gregtech/GT_Mod.java
parent96b1cb31ced61270a1289da6da4cdd99f75eeb3a (diff)
downloadGT5-Unofficial-d1eea59fe744c1b5b2c5dae324b6887f985a6569.tar.gz
GT5-Unofficial-d1eea59fe744c1b5b2c5dae324b6887f985a6569.tar.bz2
GT5-Unofficial-d1eea59fe744c1b5b2c5dae324b6887f985a6569.zip
Made the Cleanroom optional.
This disables the Low Grav option if the Cleanroom is disabled.
Diffstat (limited to 'src/main/java/gregtech/GT_Mod.java')
-rw-r--r--src/main/java/gregtech/GT_Mod.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/gregtech/GT_Mod.java b/src/main/java/gregtech/GT_Mod.java
index aac9e9598c..f39bf26ce8 100644
--- a/src/main/java/gregtech/GT_Mod.java
+++ b/src/main/java/gregtech/GT_Mod.java
@@ -254,6 +254,7 @@ public class GT_Mod implements IGT_Mod {
gregtechproxy.mExplosionItemDrop = tMainConfig.get("general", "ExplosionItemDrops", false).getBoolean(false);
gregtechproxy.mAddGTRecipesToIC2Machines = tMainConfig.get("general", "AddGTRecipesToIC2Machines", true).getBoolean(true);
gregtechproxy.mUndergroundOil.getConfig(tMainConfig, "undergroundfluid");
+ gregtechproxy.mEnableCleanroom = tMainConfig.get("general", "EnableCleanroom", true).getBoolean(true);
gregtechproxy.mLowGravProcessing = Loader.isModLoaded(GT_Values.MOD_ID_GC_CORE) && tMainConfig.get("general", "LowGravProcessing", true).getBoolean(true);
Calendar now = Calendar.getInstance();
gregtechproxy.mAprilFool = GregTech_API.sSpecialFile.get(ConfigCategories.general, "AprilFool", now.get(Calendar.MONTH) == Calendar.APRIL && now.get(Calendar.DAY_OF_MONTH) == 1);
@@ -509,6 +510,11 @@ public class GT_Mod implements IGT_Mod {
} catch (Throwable e) {e.printStackTrace(GT_Log.err);}
new GT_Bees();
+
+ //Disable Low Grav regardless of config if Cleanroom is disabled.
+ if (!gregtechproxy.mEnableCleanroom){
+ gregtechproxy.mLowGravProcessing = false;
+ }
gregtechproxy.onLoad();
if (gregtechproxy.mSortToTheEnd) {