diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2016-03-27 20:20:03 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2016-03-27 20:20:03 -0400 |
commit | b3177a4827fb0ee6d52524d13b6cd4109e71df01 (patch) | |
tree | ed911e9a12bdf0fd116e4306220ee595ad1b524c /compat.lua | |
parent | 6de437b83d99cdc49dc7899b3bf4fc6f94054d92 (diff) | |
parent | c61c090ac43f2bc6a1b34692df11c4f4eecae71a (diff) | |
download | pipeworks-b3177a4827fb0ee6d52524d13b6cd4109e71df01.tar pipeworks-b3177a4827fb0ee6d52524d13b6cd4109e71df01.tar.gz pipeworks-b3177a4827fb0ee6d52524d13b6cd4109e71df01.tar.bz2 pipeworks-b3177a4827fb0ee6d52524d13b6cd4109e71df01.tar.xz pipeworks-b3177a4827fb0ee6d52524d13b6cd4109e71df01.zip |
Merge pull request #134 from sofar/furnacefix
Work with NodeTimer based furnaces.
Diffstat (limited to 'compat.lua')
-rw-r--r-- | compat.lua | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -15,6 +15,10 @@ minetest.override_item("default:furnace", { insert_object = function(pos, node, stack, direction) local meta = minetest.get_meta(pos) local inv = meta:get_inventory() + local timer = minetest.get_node_timer(pos) + if not timer:is_started() then + timer:start(1.0) + end if direction.y == 1 then return inv:add_item("fuel",stack) else @@ -60,6 +64,10 @@ minetest.override_item("default:furnace_active", { insert_object = function(pos,node,stack,direction) local meta = minetest.get_meta(pos) local inv = meta:get_inventory() + local timer = minetest.get_node_timer(pos) + if not timer:is_started() then + timer:start(1.0) + end if direction.y == 1 then return inv:add_item("fuel", stack) else |