disable oven properly

This commit is contained in:
Niklp09 2023-06-10 16:13:32 +02:00
parent c5ab7c885c
commit bff435a45f
1 changed files with 6 additions and 0 deletions

View File

@ -281,6 +281,12 @@ function homedecor.register_furnace(name, furnacedef)
if dst_full then
infotext = S("@1 (output bins are full)", desc)
result = false
formspec = make_formspec(furnacedef, 0)
swap_node(pos, nname .. locked)
-- stop timer on the inactive furnace
minetest.get_node_timer(pos):stop()
meta:set_int("timer_elapsed", 0)
fuel_totaltime, fuel_time, src_time = 0, 0, 0
end
if infotext == nil then