Fixed liquid storage

Liquid entering was being used as the current liquid storage. Fixed so
liquid entering added to current
This commit is contained in:
Rseifert 2012-07-07 03:35:55 -04:00
parent 23b1e4ee29
commit 2e245662c2
2 changed files with 2 additions and 2 deletions

View file

@ -554,7 +554,7 @@ public class TileEntityBoiler extends TileEntityMachine implements IInventory, I
if(type == 1)
{
int rejectedElectricity = Math.max((this.waterStored + vol) - 14, 0);
this.waterStored = vol - rejectedElectricity;
this.waterStored += vol - rejectedElectricity;
return rejectedElectricity;
}
return vol;

View file

@ -293,7 +293,7 @@ public class TileEntityGenerator extends TileEntityMachine implements UEIProduce
if(type == 0)
{
int rejectedSteam = Math.max((this.steamStored + vol) - 100, 0);
this.steamStored = vol - rejectedSteam;
this.steamStored += vol - rejectedSteam;
return rejectedSteam;
}
return vol;