From a5ef9eca00df36cadc3f6f8ce9a1ff4f5a95d49a Mon Sep 17 00:00:00 2001 From: mrkubax10 Date: Tue, 27 Feb 2024 12:41:54 +0100 Subject: [PATCH] Fix two issues with Iron Furnace --- machines/iron_furnace.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)