Foid invalid steam in turbines
This commit is contained in:
parent
3a8b8bc380
commit
d6fd3fd7fa
2 changed files with 14 additions and 1 deletions
|
@ -56,7 +56,8 @@ public class GT_MetaTileEntity_SteamTurbine extends GT_MetaTileEntity_BasicGener
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getFuelValue(FluidStack aLiquid) {
|
public int getFuelValue(FluidStack aLiquid) {
|
||||||
return GT_ModHandler.isSteam(aLiquid) ? 3 : 0;
|
String fluidName = aLiquid.getFluid().getUnlocalizedName(aLiquid);
|
||||||
|
return GT_ModHandler.isSteam(aLiquid) || fluidName.equals("fluid.steam") || fluidName.equals("ic2.fluidSteam") || fluidName.equals("fluid.mfr.steam.still.name") ? 3 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int consumedFluidPerOperation(FluidStack aLiquid) {
|
public int consumedFluidPerOperation(FluidStack aLiquid) {
|
||||||
|
@ -109,4 +110,14 @@ public class GT_MetaTileEntity_SteamTurbine extends GT_MetaTileEntity_BasicGener
|
||||||
public int getPollution() {
|
public int getPollution() {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isFluidInputAllowed(FluidStack aFluid) {
|
||||||
|
if(aFluid.getFluid().getUnlocalizedName(aFluid).equals("ic2.fluidSuperheatedSteam")){
|
||||||
|
aFluid.amount=0;
|
||||||
|
aFluid = null;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return super.isFluidInputAllowed(aFluid);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -101,6 +101,8 @@ public class GT_MetaTileEntity_LargeTurbine_Steam extends GT_MetaTileEntity_Larg
|
||||||
}
|
}
|
||||||
achievement = true;
|
achievement = true;
|
||||||
}
|
}
|
||||||
|
}else if(fluidName.equals("ic2.fluidSuperheatedSteam")){
|
||||||
|
depleteInput(new FluidStack(aFluids.get(i), aFluids.get(i).amount));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue