Allow FluidGenerators to refill items with their tank

This commit is contained in:
Ourten 2016-12-17 01:40:54 +01:00
parent ce64156a9c
commit 003d124667

View file

@ -59,7 +59,8 @@ public abstract class TileBaseFluidGenerator extends TilePowerAcceptor implement
super.updateEntity();
if (!this.world.isRemote) {
if (this.acceptFluid() && FluidUtils.drainContainers(this.tank, this.inventory, 0, 1))
if ((this.acceptFluid() && FluidUtils.drainContainers(this.tank, this.inventory, 0, 1))
|| FluidUtils.fillContainers(tank, inventory, 0, 1, tank.getFluidType()))
this.syncWithAll();
}