diff options
author | Draknyte1 <Draknyte1@hotmail.com> | 2017-06-14 18:55:26 +1000 |
---|---|---|
committer | Draknyte1 <Draknyte1@hotmail.com> | 2017-06-14 18:55:26 +1000 |
commit | d1eea59fe744c1b5b2c5dae324b6887f985a6569 (patch) | |
tree | 0353bb8a5d55c402265a7394e3df4b4e2f1ebe55 /src/main/java/gregtech/common | |
parent | 96b1cb31ced61270a1289da6da4cdd99f75eeb3a (diff) | |
download | GT5-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/common')
-rw-r--r-- | src/main/java/gregtech/common/GT_Proxy.java | 1 | ||||
-rw-r--r-- | src/main/java/gregtech/common/GT_RecipeAdder.java | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/gregtech/common/GT_Proxy.java b/src/main/java/gregtech/common/GT_Proxy.java index 304978c403..a7da28c78e 100644 --- a/src/main/java/gregtech/common/GT_Proxy.java +++ b/src/main/java/gregtech/common/GT_Proxy.java @@ -200,6 +200,7 @@ public abstract class GT_Proxy implements IGT_Mod, IGuiHandler, IFuelHandler { public boolean mEnableAllMaterials = false; public boolean mEnableAllComponents = false; public boolean mAddGTRecipesToIC2Machines = true; + public boolean mEnableCleanroom = true; public boolean mLowGravProcessing = false; public boolean mAprilFool = false; public boolean mCropNeedBlock = true; diff --git a/src/main/java/gregtech/common/GT_RecipeAdder.java b/src/main/java/gregtech/common/GT_RecipeAdder.java index a0519ebbe3..4fda614ebd 100644 --- a/src/main/java/gregtech/common/GT_RecipeAdder.java +++ b/src/main/java/gregtech/common/GT_RecipeAdder.java @@ -631,6 +631,9 @@ public class GT_RecipeAdder if ((aDuration = GregTech_API.sRecipeFile.get("autoclave", aInput, aDuration)) <= 0) { return false; } + if (!GT_Mod.gregtechproxy.mEnableCleanroom){ + aCleanroom = false; + } GT_Recipe.GT_Recipe_Map.sAutoclaveRecipes.addRecipe(true, new ItemStack[]{aInput}, new ItemStack[]{aOutput}, null, new int[]{aChance}, new FluidStack[]{aFluid}, null, aDuration, aEUt, aCleanroom ? -100 : 0); return true; } @@ -659,6 +662,9 @@ public class GT_RecipeAdder if ((aDuration = GregTech_API.sRecipeFile.get("laserengraving", aEngravedItem, aDuration)) <= 0) { return false; } + if (!GT_Mod.gregtechproxy.mEnableCleanroom){ + aCleanroom = false; + } GT_Recipe.GT_Recipe_Map.sLaserEngraverRecipes.addRecipe(true, new ItemStack[]{aItemToEngrave, aLens}, new ItemStack[]{aEngravedItem}, null, null, null, aDuration, aEUt, aCleanroom ? -200 : 0); return true; } |