From 73f28281e385288c06d43cf64a1fd4540eba1e3a Mon Sep 17 00:00:00 2001 From: gigabit101 Date: Sun, 16 Aug 2015 20:41:23 +0100 Subject: [PATCH] A few more recipe tweeks and configs --- .../techreborn/compat/recipes/RecipesIC2.java | 20 +++++++++++++------ .../techreborn/config/ConfigTechReborn.java | 10 ++++++++++ 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/src/main/java/techreborn/compat/recipes/RecipesIC2.java b/src/main/java/techreborn/compat/recipes/RecipesIC2.java index 7a3d03bbe..c6747e034 100644 --- a/src/main/java/techreborn/compat/recipes/RecipesIC2.java +++ b/src/main/java/techreborn/compat/recipes/RecipesIC2.java @@ -1161,19 +1161,27 @@ public class RecipesIC2 implements ICompatModule { 40, 60 )); } - - } static void removeIc2Recipes() { - if (ConfigTechReborn.ExpensiveMacerator) + if (ConfigTechReborn.ExpensiveMacerator){ RecipeRemover.removeAnyRecipe(IC2Items.getItem("macerator")); - if (ConfigTechReborn.ExpensiveDrill) + } + if (ConfigTechReborn.ExpensiveDrill){ RecipeRemover.removeAnyRecipe(IC2Items.getItem("miningDrill")); - if (ConfigTechReborn.ExpensiveDiamondDrill) + } + if (ConfigTechReborn.ExpensiveDiamondDrill){ RecipeRemover.removeAnyRecipe(IC2Items.getItem("diamondDrill")); - if (ConfigTechReborn.ExpensiveSolar) + } + if (ConfigTechReborn.ExpensiveSolar){ RecipeRemover.removeAnyRecipe(IC2Items.getItem("solarPanel")); + } + if (ConfigTechReborn.ExpensiveWatermill){ + RecipeRemover.removeAnyRecipe(IC2Items.getItem("waterMill")); + } + if (ConfigTechReborn.ExpensiveWindmill){ + RecipeRemover.removeAnyRecipe(IC2Items.getItem("windMill")); + } LogHelper.info("IC2 Recipes Removed"); } diff --git a/src/main/java/techreborn/config/ConfigTechReborn.java b/src/main/java/techreborn/config/ConfigTechReborn.java index 79398cdf0..b0b85cee4 100644 --- a/src/main/java/techreborn/config/ConfigTechReborn.java +++ b/src/main/java/techreborn/config/ConfigTechReborn.java @@ -111,6 +111,8 @@ public class ConfigTechReborn { public static boolean ExpensiveDrill; public static boolean ExpensiveDiamondDrill; public static boolean ExpensiveSolar; + public static boolean ExpensiveWatermill; + public static boolean ExpensiveWindmill; // UU public static boolean HideUuRecipes; public static boolean UUrecipesIridiamOre; @@ -466,6 +468,14 @@ public class ConfigTechReborn { .get(CATEGORY_CRAFTING, StatCollector.translateToLocal("config.techreborn.allowExpensiveSolarPanels"), true, StatCollector.translateToLocal("config.techreborn.allowExpensiveSolarPanels.tooltip")) .getBoolean(true); + ExpensiveWatermill = config + .get(CATEGORY_CRAFTING, StatCollector.translateToLocal("config.techreborn.allowExpensiveWatermill"), + true, StatCollector.translateToLocal("config.techreborn.allowExpensiveWatermill.tooltip")) + .getBoolean(true); + ExpensiveWindmill = config + .get(CATEGORY_CRAFTING, StatCollector.translateToLocal("config.techreborn.allowExpensiveWindmill"), + true, StatCollector.translateToLocal("config.techreborn.allowExpensiveWindmill.tooltip")) + .getBoolean(true); // Uu HideUuRecipes = config.get(CATEGORY_UU, StatCollector.translateToLocal("config.techreborn.allow.hiderecipes"), true, StatCollector.translateToLocal("config.techreborn.allow.hiderecipes.tooltip")).getBoolean(true);