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() public void updateEntity()
{ {
super.updateEntity(); super.updateEntity();
FluidUtils.drainContainers(this, inventory, 0, 1); if(!worldObj.isRemote){
FluidUtils.drainContainers(this, inventory, 0, 1);
tank.compareAndUpdate();
}
energySource.updateEntity(); energySource.updateEntity();
if (tank.getFluidAmount() > 0 if (tank.getFluidAmount() > 0
&& energySource.getCapacity() - energySource.getEnergyStored() >= euTick) && energySource.getCapacity() - energySource.getEnergyStored() >= euTick)

View file

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