Add double container move logic into mcl_util

This commit is contained in:
Wuzzy 2017-08-03 23:23:33 +02:00
parent 2416af7fac
commit 3b1c0765d6
2 changed files with 56 additions and 22 deletions

View file

@ -312,10 +312,6 @@ minetest.register_abm({
end
if slot_id then
mcl_util.move_item_container(pos, "main", slot_id, downpos)
if g == 4 then
-- Start furnace's timer function, it will sort out whether furnace can burn or not.
minetest.get_node_timer(downpos):start(1.0)
end
end
end,
})
@ -376,8 +372,6 @@ minetest.register_abm({
if slot_id then
mcl_util.move_item_container(pos, "main", slot_id, front, "fuel")
end
-- Start furnace's timer function, it will sort out whether furnace can burn or not.
minetest.get_node_timer(front):start(1.0)
end
end
})