This commit is contained in:
Shadows_of_Fire 2018-07-27 20:11:58 -04:00
parent 1bec4bbff7
commit f476e47a46

View file

@ -80,7 +80,9 @@ public class TileEntityCoalGenerator extends TileEntityInventoryBase implements
if(!this.isRedstonePowered && this.currentBurnTime <= 0 && burn > 0 && this.storage.getEnergyStored() < this.storage.getMaxEnergyStored()){ if(!this.isRedstonePowered && this.currentBurnTime <= 0 && burn > 0 && this.storage.getEnergyStored() < this.storage.getMaxEnergyStored()){
this.maxBurnTime = burn; this.maxBurnTime = burn;
this.currentBurnTime = burn; this.currentBurnTime = burn;
ItemStack copy = stack.copy();
stack.shrink(1); stack.shrink(1);
if(stack.isEmpty()) inv.setStackInSlot(0, copy.getItem().getContainerItem(copy));
} }
if(flag != this.currentBurnTime > 0 || this.lastCompare != this.getComparatorStrength()){ if(flag != this.currentBurnTime > 0 || this.lastCompare != this.getComparatorStrength()){