Fix double tile entity update

This commit is contained in:
drcrazy 2017-09-10 01:15:07 +03:00
parent b13d282bf1
commit 5b09618ad2
8 changed files with 7 additions and 15 deletions

View file

@ -75,9 +75,8 @@ public class TileImplosionCompressor extends TilePowerAcceptor
@Override
public void update() {
super.update();
if (this.getMutliBlock()) {
this.crafter.updateEntity();
super.update();
}
}

View file

@ -104,15 +104,13 @@ public class TileIndustrialGrinder extends TilePowerAcceptor implements IToolDro
public void update() {
ticksSinceLastChange++;
super.update();
if (this.multiblockChecker == null) {
final BlockPos pos = this.getPos().offset(this.getFacing().getOpposite(), 2).down();
this.multiblockChecker = new MultiblockChecker(this.world, pos);
}
if (this.getMutliBlock()) {
this.crafter.updateEntity();
super.update();
}
//Check cells input slot 2 time per second

View file

@ -62,9 +62,9 @@ public class TileVacuumFreezer extends TilePowerAcceptor
@Override
public void update() {
super.update();
if (this.getMultiBlock())
this.crafter.updateEntity();
if (this.getMultiBlock()) {
super.update();
}
}
public boolean getMultiBlock() {