Skip to content

Commit

Permalink
Furnace: Start the timer on on_metadata_inventory_take (#2639)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
orbea authored Sep 23, 2020
1 parent 5348d6e commit dd91a1b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mods/default/furnace.lua
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,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)
Expand Down

0 comments on commit dd91a1b

Please sign in to comment.