projects
/
oweals
/
minetest_game.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
787ccb5
)
Start timer as well when moving items around.
author
Auke Kok
<sofar@foo-projects.org>
Sun, 27 Mar 2016 23:50:55 +0000
(16:50 -0700)
committer
paramat
<mat.gregory@virginmedia.com>
Wed, 30 Mar 2016 22:10:59 +0000
(23:10 +0100)
It's possible to hit this when using an e.g. charcoal mod
where a tree is both a fuel and a source.
mods/default/furnace.lua
patch
|
blob
|
history
diff --git
a/mods/default/furnace.lua
b/mods/default/furnace.lua
index aa2be2125ae46ad28318236a2445f29a642c219f..4fb2071ad522076a7b4ee118a8a2a43e3727abc0 100644
(file)
--- 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)