From fcaae3664b09c3041bd4fd71340c6769d928f18e Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Wed, 16 Dec 2015 00:08:18 +0100 Subject: [PATCH] Made the coal generator more wasteful --- .../tile/TileEntityCoalGenerator.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/main/java/ellpeck/actuallyadditions/tile/TileEntityCoalGenerator.java b/src/main/java/ellpeck/actuallyadditions/tile/TileEntityCoalGenerator.java index e7b77af88..ea7c7a930 100644 --- a/src/main/java/ellpeck/actuallyadditions/tile/TileEntityCoalGenerator.java +++ b/src/main/java/ellpeck/actuallyadditions/tile/TileEntityCoalGenerator.java @@ -74,13 +74,12 @@ public class TileEntityCoalGenerator extends TileEntityInventoryBase implements if(this.currentBurnTime <= 0 && this.slots[0] != null && TileEntityFurnace.getItemBurnTime(this.slots[0]) > 0){ int burnTime = TileEntityFurnace.getItemBurnTime(this.slots[0]); - if(PRODUCE*burnTime <= this.getMaxEnergyStored(ForgeDirection.UNKNOWN)-this.getEnergyStored(ForgeDirection.UNKNOWN)){ - this.maxBurnTime = burnTime; - this.currentBurnTime = burnTime; - this.slots[0].stackSize--; - if(this.slots[0].stackSize == 0){ - this.slots[0] = this.slots[0].getItem().getContainerItem(this.slots[0]); - } + this.maxBurnTime = burnTime; + this.currentBurnTime = burnTime; + + this.slots[0].stackSize--; + if(this.slots[0].stackSize == 0){ + this.slots[0] = this.slots[0].getItem().getContainerItem(this.slots[0]); } }