This commit is contained in:
modmuss50 2018-04-21 15:56:25 +01:00
parent 4734c49a70
commit 21e9a86194
No known key found for this signature in database
GPG key ID: 773D17BE8BF49C82

View file

@ -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);
}
}