diff options
author | DreamMasterXXL <dream-master@gmx.net> | 2021-08-26 21:14:24 +0200 |
---|---|---|
committer | DreamMasterXXL <dream-master@gmx.net> | 2021-08-26 21:14:24 +0200 |
commit | 48e6f220fd4b05d7532c1cc21b8946420a69ce2c (patch) | |
tree | 820199b61a59f47b570839472c91ba7fbfc0c42d /src/main/java/gregtech/common | |
parent | 3e9bf700216d85c923f16d520d06c5fa1145094a (diff) | |
download | GT5-Unofficial-48e6f220fd4b05d7532c1cc21b8946420a69ce2c.tar.gz GT5-Unofficial-48e6f220fd4b05d7532c1cc21b8946420a69ce2c.tar.bz2 GT5-Unofficial-48e6f220fd4b05d7532c1cc21b8946420a69ce2c.zip |
rework(RC Rails)
buff recipes for rebars, tracks and rails
add circuit support to Bender
Diffstat (limited to 'src/main/java/gregtech/common')
-rw-r--r-- | src/main/java/gregtech/common/GT_RecipeAdder.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/gregtech/common/GT_RecipeAdder.java b/src/main/java/gregtech/common/GT_RecipeAdder.java index 0799606f50..7c18f9b76a 100644 --- a/src/main/java/gregtech/common/GT_RecipeAdder.java +++ b/src/main/java/gregtech/common/GT_RecipeAdder.java @@ -533,13 +533,18 @@ public class GT_RecipeAdder implements IGT_RecipeAdder { @Override public boolean addBenderRecipe(ItemStack aInput1, ItemStack aOutput1, int aDuration, int aEUt) { + return addBenderRecipe(aInput1, aOutput1, aDuration, aEUt); + } + @Override + public boolean addBenderRecipe(ItemStack aInput1, ItemStack aCircuit, ItemStack aOutput1, int aDuration, int aEUt) { if ((aInput1 == null) || (aOutput1 == null)) { return false; } if ((aDuration = GregTech_API.sRecipeFile.get("bender", aInput1, aDuration)) <= 0) { return false; } - new GT_Recipe(aEUt, aDuration, aInput1, aOutput1); + GT_Recipe tRecipe = new GT_Recipe(new ItemStack[]{aInput1, aCircuit}, new ItemStack[]{aOutput1}, null, null, null, null, aDuration, Math.max(aEUt, 1), 0); + GT_Recipe.GT_Recipe_Map.sBenderRecipes.addRecipe(tRecipe); return true; } |