Skip to content

Commit dd91a1b

Browse files
authoredSep 23, 2020
Furnace: Start the timer on on_metadata_inventory_take (#2639)
This fixes a cosmetic issue 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.
1 parent 5348d6e commit dd91a1b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

Diff for: ‎mods/default/furnace.lua

+4
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,10 @@ minetest.register_node("default:furnace", {
318318
-- start timer function, it will sort out whether furnace can burn or not.
319319
minetest.get_node_timer(pos):start(1.0)
320320
end,
321+
on_metadata_inventory_take = function(pos)
322+
-- check whether the furnace is empty or not.
323+
minetest.get_node_timer(pos):start(1.0)
324+
end,
321325
on_blast = function(pos)
322326
local drops = {}
323327
default.get_inventory_drops(pos, "src", drops)

0 commit comments

Comments
 (0)
Please sign in to comment.