Fixes #25
This commit is contained in:
parent
94803e88f3
commit
1ac6f592f8
2 changed files with 8 additions and 1 deletions
|
@ -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)
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue