Some work on wire furnace burn time
This commit is contained in:
parent
c72b57cc34
commit
7c07ab9436
1 changed files with 4 additions and 7 deletions
|
@ -50,14 +50,11 @@ public class TileEntityTickWire extends TileEntityWire implements IElectrical
|
||||||
if (tileEntity.furnaceBurnTime == 0)
|
if (tileEntity.furnaceBurnTime == 0)
|
||||||
{
|
{
|
||||||
int burnTime = TileEntityFurnace.getItemBurnTime(tileEntity.getStackInSlot(1));
|
int burnTime = TileEntityFurnace.getItemBurnTime(tileEntity.getStackInSlot(1));
|
||||||
|
tileEntity.decrStackSize(1, 1);
|
||||||
if (burnTime > 0)
|
tileEntity.furnaceBurnTime = burnTime;
|
||||||
{
|
|
||||||
tileEntity.decrStackSize(1, 1);
|
|
||||||
tileEntity.furnaceBurnTime = burnTime;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
|
||||||
|
if (tileEntity.furnaceBurnTime > 0)
|
||||||
{
|
{
|
||||||
this.getNetwork().produce(ElectricityPack.getFromWatts(ResonantInduction.FURNACE_WATTAGE, FURNACE_VOLTAGE));
|
this.getNetwork().produce(ElectricityPack.getFromWatts(ResonantInduction.FURNACE_WATTAGE, FURNACE_VOLTAGE));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue