Fix #1489
This commit is contained in:
parent
4734c49a70
commit
21e9a86194
1 changed files with 2 additions and 1 deletions
|
@ -112,7 +112,8 @@ public class TileRecycler extends TilePowerAcceptor
|
|||
final IBlockState BlockStateContainer = this.world.getBlockState(this.pos);
|
||||
if (BlockStateContainer.getBlock() instanceof BlockMachineBase) {
|
||||
final BlockMachineBase blockMachineBase = (BlockMachineBase) BlockStateContainer.getBlock();
|
||||
if (BlockStateContainer.getValue(BlockMachineBase.ACTIVE) != this.isBurning)
|
||||
boolean shouldBurn = this.isBurning || (this.canRecycle() && this.canUseEnergy(getEuPerTick(this.cost)));
|
||||
if (BlockStateContainer.getValue(BlockMachineBase.ACTIVE) != shouldBurn)
|
||||
blockMachineBase.setActive(this.isBurning, this.world, this.pos);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue