mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 23:28:35 +01:00
Made the coal generator more wasteful
This commit is contained in:
parent
dc35992d7d
commit
fcaae3664b
1 changed files with 6 additions and 7 deletions
|
@ -74,15 +74,14 @@ 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]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if(this.getEnergyStored(ForgeDirection.UNKNOWN) > 0){
|
if(this.getEnergyStored(ForgeDirection.UNKNOWN) > 0){
|
||||||
WorldUtil.pushEnergy(worldObj, xCoord, yCoord, zCoord, ForgeDirection.UP, storage);
|
WorldUtil.pushEnergy(worldObj, xCoord, yCoord, zCoord, ForgeDirection.UP, storage);
|
||||||
|
|
Loading…
Reference in a new issue