Merge pull request #199 from pyure/patch-3

Large Boilers now accept distilled water (w/o exploding)
This commit is contained in:
Blood-Asp 2015-10-01 00:25:23 +02:00
commit b4e3f96c21

View file

@ -141,7 +141,8 @@ public abstract class GT_MetaTileEntity_LargeBoiler
{
int tGeneratedEU = (int)(this.mEUt * 2L * this.mEfficiency / 10000L);
if (tGeneratedEU > 0) {
if (depleteInput(Materials.Water.getFluid((tGeneratedEU + 160) / 160))) {
long amount = (tGeneratedEU + 160) / 160;
if (depleteInput(Materials.Water.getFluid(amount)) || depleteInput(GT_ModHandler.getDistilledWater(amount))) {
addOutput(GT_ModHandler.getSteam(tGeneratedEU));
} else {
explodeMultiblock();
@ -257,8 +258,12 @@ public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) {
}
}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
* Qualified Name: gregtech.common.tileentities.machines.multi.GT_MetaTileEntity_LargeBoiler
* JD-Core Version: 0.7.0.1
*/
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
* Qualified Name: gregtech.common.tileentities.machines.multi.GT_MetaTileEntity_LargeBoiler
* JD-Core Version: 0.7.0.1
*/