Fill\drain fluidgen tank only on server

This commit is contained in:
drcrazy 2018-01-21 02:16:51 +03:00
parent 2cb5645806
commit 79582cd94b

View file

@ -75,7 +75,7 @@ public abstract class TileBaseFluidGenerator extends TilePowerAcceptor implement
this.ticksSinceLastChange++; this.ticksSinceLastChange++;
// Check cells input slot 2 time per second // Check cells input slot 2 time per second
if (this.ticksSinceLastChange >= 10) { if (!world.isRemote && this.ticksSinceLastChange >= 10) {
if (!this.inventory.getStackInSlot(0).isEmpty()) { if (!this.inventory.getStackInSlot(0).isEmpty()) {
FluidUtils.drainContainers(this.tank, this.inventory, 0, 1); FluidUtils.drainContainers(this.tank, this.inventory, 0, 1);
FluidUtils.fillContainers(this.tank, this.inventory, 0, 1, this.tank.getFluidType()); FluidUtils.fillContainers(this.tank, this.inventory, 0, 1, this.tank.getFluidType());