Fill\drain fluidgen tank only on server
This commit is contained in:
parent
2cb5645806
commit
79582cd94b
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||||
|
|
Loading…
Reference in a new issue