Some work on wire furnace burn time

This commit is contained in:
Calclavia 2013-08-25 17:55:48 +08:00
parent c72b57cc34
commit 7c07ab9436

View file

@ -50,14 +50,11 @@ public class TileEntityTickWire extends TileEntityWire implements IElectrical
if (tileEntity.furnaceBurnTime == 0)
{
int burnTime = TileEntityFurnace.getItemBurnTime(tileEntity.getStackInSlot(1));
if (burnTime > 0)
{
tileEntity.decrStackSize(1, 1);
tileEntity.furnaceBurnTime = burnTime;
}
}
else
if (tileEntity.furnaceBurnTime > 0)
{
this.getNetwork().produce(ElectricityPack.getFromWatts(ResonantInduction.FURNACE_WATTAGE, FURNACE_VOLTAGE));
}