Make plasma turbine output cooled versions of plasma (Blood Asp)
This commit is contained in:
parent
02c801afac
commit
7c6c34ed0f
1 changed files with 15 additions and 1 deletions
|
@ -12,6 +12,8 @@ import gregtech.api.util.GT_Utility;
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraftforge.fluids.FluidStack;
|
import net.minecraftforge.fluids.FluidStack;
|
||||||
|
import net.minecraftforge.fluids.FluidRegistry;
|
||||||
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
@ -107,6 +109,18 @@ public class GT_MetaTileEntity_LargeTurbine_Plasma extends GT_MetaTileEntity_Lar
|
||||||
totalFlow += flow; // track total input used
|
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);
|
tEU = (int) (Math.min((float) actualOptimalFlow, totalFlow) * fuelValue);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue