HP Turbine deletes normal steam in input hatch to not get stuck
This commit is contained in:
parent
985130d6f4
commit
df28bd66ec
1 changed files with 4 additions and 1 deletions
|
@ -75,7 +75,8 @@ public class GT_MetaTileEntity_LargeTurbine_HPSteam extends GT_MetaTileEntity_La
|
|||
int remainingFlow = (int) (aOptFlow * 1.25f); // Allowed to use up to 125% of optimal flow
|
||||
|
||||
for (int i = 0; i < aFluids.size() && remainingFlow > 0; i++) {
|
||||
if (aFluids.get(i).getFluid().getUnlocalizedName(aFluids.get(i)).equals("ic2.fluidSuperheatedSteam")) {
|
||||
String fluidName = aFluids.get(i).getFluid().getUnlocalizedName(aFluids.get(i));
|
||||
if (fluidName.equals("ic2.fluidSuperheatedSteam")) {
|
||||
flow = aFluids.get(i).amount; // Get all (steam) in hatch
|
||||
flow = Math.min(flow, Math.min(remainingFlow, (int) (aOptFlow * 1.25f))); // try to use up to 125% of optimal flow w/o exceeding remainingFlow
|
||||
depleteInput(new FluidStack(aFluids.get(i), flow)); // deplete that amount
|
||||
|
@ -88,6 +89,8 @@ public class GT_MetaTileEntity_LargeTurbine_HPSteam extends GT_MetaTileEntity_La
|
|||
}
|
||||
achievement = true;
|
||||
}
|
||||
}else if(fluidName.equals("fluid.steam") || fluidName.equals("ic2.fluidSteam") || fluidName.equals("fluid.mfr.steam.still.name")){
|
||||
depleteInput(new FluidStack(aFluids.get(i), aFluids.get(i).amount));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue