From 1435e8a664d28389a0220b6fdfb1d3e7980a7f4e Mon Sep 17 00:00:00 2001 From: Alkalus Date: Tue, 26 Sep 2017 18:40:32 +1000 Subject: % Changed Blast Smelter Recipe addition again. Input fluids should now be supported. > This allows more alloys requiring oxygen or argon to be produced. --- .../xmod/gregtech/recipes/GregtechRecipeAdder.java | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'src/Java/gtPlusPlus/xmod/gregtech/recipes') diff --git a/src/Java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java b/src/Java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java index d6b2fe0699..c372335155 100644 --- a/src/Java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java +++ b/src/Java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java @@ -286,6 +286,35 @@ public class GregtechRecipeAdder implements IGregtech_RecipeAdder { Recipe_GT.Gregtech_Recipe_Map.sAlloyBlastSmelterRecipes.addRecipe(true, aInput, new ItemStack[]{null}, null, new int[]{aChance}, null, new FluidStack[]{aOutput}, aDuration, aEUt, 0); return true; } + + @Override + public boolean addBlastSmelterRecipe(final ItemStack[] aInput, FluidStack aInputFluid, FluidStack aOutput, final int aChance, int aDuration, final int aEUt) { + if ((aInput == null) || (aOutput == null)) { + Utils.LOG_WARNING("Fail - Input or Output was null."); + return false; + } + + + if (aOutput.isFluidEqual(Materials.PhasedGold.getMolten(1))) { + aOutput = Materials.VibrantAlloy.getMolten(aOutput.amount); + } + if (aOutput.isFluidEqual(Materials.PhasedIron.getMolten(1))) { + aOutput = Materials.PulsatingIron.getMolten(aOutput.amount); + } + if ((aDuration = GregTech_API.sRecipeFile.get("blastsmelter", aOutput.getFluid().getName(), aDuration)) <= 0) { + Utils.LOG_WARNING("Recipe did not register."); + return false; + } + + for (int das=0;das