From 7915e7f51e8aef77b52c6ad94c5e709456d4958d Mon Sep 17 00:00:00 2001 From: Zefram Date: Thu, 14 Aug 2014 21:59:15 +0100 Subject: Rename tube_item() to tube_inject_item() The new function has no API compatibility with the old one, so give it a different name to avoid confusion among caller mods, which need to change their usage. Have a function under the old name that outputs a helpful error message. --- wielder.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wielder.lua') diff --git a/wielder.lua b/wielder.lua index 4bc9a4f..3ce73f6 100644 --- a/wielder.lua +++ b/wielder.lua @@ -101,7 +101,7 @@ local function wielder_on(data, wielder_pos, wielder_node) if data.eject_drops then for i, stack in ipairs(inv:get_list("main")) do if not stack:is_empty() then - pipeworks.tube_item(wielder_pos, wielder_pos, dir, stack) + pipeworks.tube_inject_item(wielder_pos, wielder_pos, dir, stack) inv:set_stack("main", i, ItemStack("")) end end -- cgit v1.2.3