Made the coal generator more wasteful

This commit is contained in:
Ellpeck 2015-12-16 00:08:18 +01:00
parent dc35992d7d
commit fcaae3664b

View file

@ -74,13 +74,12 @@ public class TileEntityCoalGenerator extends TileEntityInventoryBase implements
if(this.currentBurnTime <= 0 && this.slots[0] != null && TileEntityFurnace.getItemBurnTime(this.slots[0]) > 0){ if(this.currentBurnTime <= 0 && this.slots[0] != null && TileEntityFurnace.getItemBurnTime(this.slots[0]) > 0){
int burnTime = TileEntityFurnace.getItemBurnTime(this.slots[0]); int burnTime = TileEntityFurnace.getItemBurnTime(this.slots[0]);
if(PRODUCE*burnTime <= this.getMaxEnergyStored(ForgeDirection.UNKNOWN)-this.getEnergyStored(ForgeDirection.UNKNOWN)){ this.maxBurnTime = burnTime;
this.maxBurnTime = burnTime; this.currentBurnTime = burnTime;
this.currentBurnTime = burnTime;
this.slots[0].stackSize--; this.slots[0].stackSize--;
if(this.slots[0].stackSize == 0){ if(this.slots[0].stackSize == 0){
this.slots[0] = this.slots[0].getItem().getContainerItem(this.slots[0]); this.slots[0] = this.slots[0].getItem().getContainerItem(this.slots[0]);
}
} }
} }