Fix crash if using furnace

This commit is contained in:
Wuzzy 2024-12-02 22:10:55 +01:00
parent 2a075a8ff1
commit bc5da1d9b1

View File

@ -605,7 +605,7 @@ minetest.register_abm({
if meta:get_float("fuel_time") < meta:get_float("fuel_totaltime") then if meta:get_float("fuel_time") < meta:get_float("fuel_totaltime") then
local percent = math.floor(meta:get_float("fuel_time") / local percent = math.floor(meta:get_float("fuel_time") /
meta:get_float("fuel_totaltime") * 100) meta:get_float("fuel_totaltime") * 100)
meta:set_string("infotext", S("Active furnace (Flame used: @1%) (Rightclick to examine)"), percent) meta:set_string("infotext", S("Active furnace (Flame used: @1%) (Rightclick to examine)", percent))
swap_node(pos,"tutorial_default:furnace_active") swap_node(pos,"tutorial_default:furnace_active")
meta:set_string("formspec",default.get_furnace_active_formspec(pos, percent)) meta:set_string("formspec",default.get_furnace_active_formspec(pos, percent))
return return