From ad8ad425420c73c5778a8ac309edc976f62aa5c8 Mon Sep 17 00:00:00 2001 From: Logan Perkins Date: Wed, 29 Jun 2016 22:37:41 -0700 Subject: [PATCH] Update GT_MetaTileEntity_LargeTurbine_Plasma.java --- .../GT_MetaTileEntity_LargeTurbine_Plasma.java | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_Plasma.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_Plasma.java index 2880c609..e8a5ac95 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_Plasma.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_Plasma.java @@ -12,6 +12,8 @@ import gregtech.api.util.GT_Utility; import net.minecraft.block.Block; import net.minecraft.item.ItemStack; import net.minecraftforge.fluids.FluidStack; +import net.minecraftforge.fluids.FluidRegistry; + import java.util.ArrayList; import java.util.Collection; @@ -107,6 +109,18 @@ public class GT_MetaTileEntity_LargeTurbine_Plasma extends GT_MetaTileEntity_Lar totalFlow += flow; // track total input used } } + String fn = FluidRegistry.getFluidName(firstFuelType); + String[] nameSegments = fn.split("\\.",2); + if (nameSegments.length==2){ + String outputName=nameSegments[1]; + FluidStack output = FluidRegistry.getFluidStack(outputName, totalFlow); + if (output==null){ + output = FluidRegistry.getFluidStack("molten."+outputName, totalFlow); + } + if (output!=null) { + addOutput(output); + } + } tEU = (int) (Math.min((float) actualOptimalFlow, totalFlow) * fuelValue); @@ -128,4 +142,4 @@ public class GT_MetaTileEntity_LargeTurbine_Plasma extends GT_MetaTileEntity_Lar } -} \ No newline at end of file +}