aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/gregtech/loaders
diff options
context:
space:
mode:
authordraknyte1 <draknyte1@hotmail.com>2017-02-26 10:36:33 +1000
committerdraknyte1 <draknyte1@hotmail.com>2017-02-26 10:36:33 +1000
commit4a861cbe2336d6f306499ff782bc852f6ecaa3a5 (patch)
treed78291f3560f1dd7b4369fc89c7f15184ff459bb /src/Java/gtPlusPlus/xmod/gregtech/loaders
parent5e0e5e4c5722fb2de5e19af8da6004b42fce43da (diff)
downloadGT5-Unofficial-4a861cbe2336d6f306499ff782bc852f6ecaa3a5.tar.gz
GT5-Unofficial-4a861cbe2336d6f306499ff782bc852f6ecaa3a5.tar.bz2
GT5-Unofficial-4a861cbe2336d6f306499ff782bc852f6ecaa3a5.zip
+ Added custom GT:NH recipes for rings for all of my materials, which use two tools.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/loaders')
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_ShapedCrafting.java31
1 files changed, 23 insertions, 8 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_ShapedCrafting.java b/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_ShapedCrafting.java
index 16ad1efab6..defe3f680c 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_ShapedCrafting.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_ShapedCrafting.java
@@ -1,6 +1,7 @@
package gtPlusPlus.xmod.gregtech.loaders;
import gregtech.api.util.GT_ModHandler;
+import gtPlusPlus.core.lib.CORE;
import gtPlusPlus.core.material.Material;
import gtPlusPlus.core.util.Utils;
import gtPlusPlus.core.util.item.ItemUtils;
@@ -59,16 +60,30 @@ public class RecipeGen_ShapedCrafting implements Runnable{
//Ring Recipe
if (!material.isRadioactive){
- if (RecipeUtils.recipeBuilder(
- "craftingToolHardHammer", null, null,
- null, material.getRod(1), null,
- null, null, null,
- material.getRing(1))){
- Utils.LOG_WARNING("Ring Recipe: "+material.getLocalizedName()+" - Success");
+ if (CORE.GTNH){
+ if (RecipeUtils.recipeBuilder(
+ "craftingToolHardHammer", null, null,
+ "craftingToolFile", material.getRod(1), null,
+ null, null, null,
+ material.getRing(1))){
+ Utils.LOG_WARNING("GT:NH Ring Recipe: "+material.getLocalizedName()+" - Success");
+ }
+ else {
+ Utils.LOG_WARNING("GT:NH Ring Recipe: "+material.getLocalizedName()+" - Failed");
+ }
}
else {
- Utils.LOG_WARNING("Ring Recipe: "+material.getLocalizedName()+" - Failed");
- }
+ if (RecipeUtils.recipeBuilder(
+ "craftingToolHardHammer", null, null,
+ null, material.getRod(1), null,
+ null, null, null,
+ material.getRing(1))){
+ Utils.LOG_WARNING("Ring Recipe: "+material.getLocalizedName()+" - Success");
+ }
+ else {
+ Utils.LOG_WARNING("Ring Recipe: "+material.getLocalizedName()+" - Failed");
+ }
+ }
}