diff --git a/machines/iron_furnace.lua b/machines/iron_furnace.lua index 0f8d400..f21a7dc 100644 --- a/machines/iron_furnace.lua +++ b/machines/iron_furnace.lua @@ -173,7 +173,7 @@ ironFurnace.activeOnTimer=function(pos,elapsed) end shouldUpdateFormspec=true shouldRerunTimer=true - else + elseif meta:get_float("fuelTime")<=0 then minetest.swap_node(pos,{ name="industrialtest:iron_furnace", param2=minetest.get_node(pos).param2 @@ -252,7 +252,7 @@ ironFurnace.onMetadataInventoryTake=function(pos,listname,index,stack) meta:set_float("srcTime",-1) meta:set_float("maxSrcTime",0) if meta:get_float("maxFuelTime")>0 then - meta:set_string("formspec",ironFurnaceFormspec(meta:get_float("fuelTime")/meta:get_float("maxFuelTime")*100,0)) + meta:set_string("formspec",ironFurnace.getFormspec(meta:get_float("fuelTime")/meta:get_float("maxFuelTime")*100,0)) end elseif listname=="dst" and dstSlot:get_free_space()==0 then minetest.get_node_timer(pos):start(industrialtest.updateDelay)