int z = supertile.zCoord + k;
TileEntity tile = supertile.getWorldObj().getTileEntity(x, y, z);
if(tile != null) {
if(tile instanceof TileEntityFurnace) {
TileEntityFurnace furnace = (TileEntityFurnace) tile;
boolean canSmelt = canFurnaceSmelt(furnace);
if(canSmelt && mana > 2) {
if(furnace.furnaceBurnTime < 2) {
if(furnace.furnaceBurnTime == 0)
BlockFurnace.updateFurnaceBlockState(true, supertile.getWorldObj(), x, y, z);