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

@ -78,9 +78,8 @@ public class TileIndustrialCentrifuge extends TilePowerAcceptor
}
@Override
public void updateEntity() {
super.updateEntity();
this.crafter.updateEntity();
public void update() {
super.update();
this.charge(6);
if (this.inventory.getStackInSlot(6) != ItemStack.EMPTY) {
final ItemStack stack = this.inventory.getStackInSlot(6);

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() {

View file

@ -76,7 +76,6 @@ public class TileAlloySmelter extends TilePowerAcceptor
@Override
public void update() {
super.update();
this.crafter.updateEntity();
this.charge(3);
}

View file

@ -59,7 +59,6 @@ public class TileCompressor extends TilePowerAcceptor implements IToolDrop, IInv
public void update() {
if (!this.world.isRemote) {
super.update();
this.crafter.updateEntity();
this.charge(3);
}
}

View file

@ -62,7 +62,6 @@ public class TileExtractor extends TilePowerAcceptor
public void update() {
if (!this.world.isRemote) {
super.update();
this.crafter.updateEntity();
this.charge(3);
}
}

View file

@ -62,7 +62,6 @@ public class TileGrinder extends TilePowerAcceptor
public void update() {
if (!this.world.isRemote) {
super.update();
//charge(3); TODO
this.charge(3);
}
}