Fixes #1425
This commit is contained in:
parent
af57ef708d
commit
34816e5ee7
1 changed files with 5 additions and 0 deletions
|
@ -138,6 +138,11 @@ public class TileElectricFurnace extends TilePowerAcceptor
|
||||||
|
|
||||||
public void updateState() {
|
public void updateState() {
|
||||||
if(wasBurning != (this.progress > 0)){
|
if(wasBurning != (this.progress > 0)){
|
||||||
|
//skips updating the block state for 1 tick, to prevent the machine from turning on/off rapidly causing fps drops
|
||||||
|
if(wasBurning && this.progress == 0 && canSmelt()){
|
||||||
|
wasBurning = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
final IBlockState BlockStateContainer = this.world.getBlockState(this.pos);
|
final IBlockState BlockStateContainer = this.world.getBlockState(this.pos);
|
||||||
if (BlockStateContainer.getBlock() instanceof BlockMachineBase) {
|
if (BlockStateContainer.getBlock() instanceof BlockMachineBase) {
|
||||||
final BlockMachineBase blockMachineBase = (BlockMachineBase) BlockStateContainer.getBlock();
|
final BlockMachineBase blockMachineBase = (BlockMachineBase) BlockStateContainer.getBlock();
|
||||||
|
|
Loading…
Reference in a new issue