From: Auke Kok Date: Sun, 27 Mar 2016 23:50:55 +0000 (-0700) Subject: Start timer as well when moving items around. X-Git-Tag: 0.4.14~64 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4d7dbfc826510e017f1ff167de0fbc78bb7f8ed3;p=oweals%2Fminetest_game.git Start timer as well when moving items around. It's possible to hit this when using an e.g. charcoal mod where a tree is both a fuel and a source. --- diff --git a/mods/default/furnace.lua b/mods/default/furnace.lua index aa2be212..4fb2071a 100644 --- a/mods/default/furnace.lua +++ b/mods/default/furnace.lua @@ -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)