Skip to content

Commit

Permalink
Start timer as well when moving items around.
Browse files Browse the repository at this point in the history
It's possible to hit this when using an e.g. charcoal mod
where a tree is both a fuel and a source.
  • Loading branch information
sofar authored and paramat committed Mar 30, 2016
1 parent 787ccb5 commit 4d7dbfc
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 @@ -251,6 +251,10 @@ minetest.register_node("default:furnace", {
inv:set_size('dst', 4)
end,

on_metadata_inventory_move = function(pos)
local timer = minetest.get_node_timer(pos)
timer:start(1.0)
end,
on_metadata_inventory_put = function(pos)
-- start timer function, it will sort out whether furnace can burn or not.
local timer = minetest.get_node_timer(pos)
Expand Down

0 comments on commit 4d7dbfc

Please sign in to comment.