Allow FluidGenerators to refill items with their tank
This commit is contained in:
parent
ce64156a9c
commit
003d124667
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue