aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java
diff options
context:
space:
mode:
authorAlkalus <draknyte1@hotmail.com>2017-09-26 18:40:32 +1000
committerAlkalus <draknyte1@hotmail.com>2017-09-26 18:40:32 +1000
commit1435e8a664d28389a0220b6fdfb1d3e7980a7f4e (patch)
tree1cb593ffcc24248fcabcc6c24e5a6991929fac19 /src/Java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java
parent2f61b44487964411c9a02dcce70e39bae388805e (diff)
downloadGT5-Unofficial-1435e8a664d28389a0220b6fdfb1d3e7980a7f4e.tar.gz
GT5-Unofficial-1435e8a664d28389a0220b6fdfb1d3e7980a7f4e.tar.bz2
GT5-Unofficial-1435e8a664d28389a0220b6fdfb1d3e7980a7f4e.zip
% Changed Blast Smelter Recipe addition again. Input fluids should now be supported.
> This allows more alloys requiring oxygen or argon to be produced.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java')
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/recipes/GregtechRecipeAdder.java29
1 files changed, 29 insertions, 0 deletions
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<aInput.length;das++){
+ if (aInput[das] != null) {
+ Utils.LOG_WARNING("tMaterial["+das+"]: "+aInput[das].getDisplayName()+", Amount: "+aInput[das].stackSize);
+ }
+ }
+
+ Recipe_GT.Gregtech_Recipe_Map.sAlloyBlastSmelterRecipes.addRecipe(true, aInput, new ItemStack[]{null}, null, new int[]{aChance}, new FluidStack[]{aInputFluid}, new FluidStack[]{aOutput}, aDuration, aEUt, 0);
+ return true;
+ }