From f98a156569b23753ecefd1ee6db7d1496d30a84b Mon Sep 17 00:00:00 2001 From: orbea Date: Tue, 7 Apr 2020 18:05:59 -0700 Subject: [PATCH] furnace: Start the timer on on_metadata_inventory_take. This fixes a cosmetic issue that where if a player removes items from the furnace it will not revert to showing that its "Empty". The furnace would only show its empty when the the items were used up by the smelting process. --- mods/default/furnace.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mods/default/furnace.lua b/mods/default/furnace.lua index 3c4ac9c8..0f1c9329 100644 --- a/mods/default/furnace.lua +++ b/mods/default/furnace.lua @@ -305,6 +305,10 @@ minetest.register_node("default:furnace", { -- start timer function, it will sort out whether furnace can burn or not. minetest.get_node_timer(pos):start(1.0) end, + on_metadata_inventory_take = function(pos) + -- check whether the furnace is empty or not. + minetest.get_node_timer(pos):start(1.0) + end, on_blast = function(pos) local drops = {} default.get_inventory_drops(pos, "src", drops)