From 4a861cbe2336d6f306499ff782bc852f6ecaa3a5 Mon Sep 17 00:00:00 2001 From: draknyte1 Date: Sun, 26 Feb 2017 10:36:33 +1000 Subject: + Added custom GT:NH recipes for rings for all of my materials, which use two tools. --- .../gregtech/loaders/RecipeGen_ShapedCrafting.java | 31 ++++++++++++++++------ 1 file changed, 23 insertions(+), 8 deletions(-) (limited to 'src/Java/gtPlusPlus/xmod/gregtech/loaders') 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"); + } + } } -- cgit