This commit is contained in:
modmuss50 2015-06-07 09:31:58 +01:00
parent 94803e88f3
commit 1ac6f592f8
2 changed files with 8 additions and 1 deletions

View file

@ -174,7 +174,11 @@ public class TileGasTurbine extends TileEntity implements IWrenchable,
public void updateEntity()
{
super.updateEntity();
FluidUtils.drainContainers(this, inventory, 0, 1);
if(!worldObj.isRemote){
FluidUtils.drainContainers(this, inventory, 0, 1);
tank.compareAndUpdate();
}
energySource.updateEntity();
if (tank.getFluidAmount() > 0
&& energySource.getCapacity() - energySource.getEnergyStored() >= euTick)

View file

@ -59,6 +59,9 @@ public class Tank extends FluidTank {
}
public void compareAndUpdate() {
if(tile.getWorldObj().isRemote){
return;
}
FluidStack current = this.getFluid();
if (current != null) {
if (lastBeforeUpdate != null) {