diff options
author | Zefram <zefram@fysh.org> | 2014-08-14 21:59:15 +0100 |
---|---|---|
committer | Novatux <nathanael.courant@laposte.net> | 2014-08-15 13:24:52 +0200 |
commit | 7915e7f51e8aef77b52c6ad94c5e709456d4958d (patch) | |
tree | 7ef9f430b27d26419f3e538fbf8ed113521f2be8 /wielder.lua | |
parent | b77146f29cd1456dff4a3b9e023e6067e9580318 (diff) |
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.
Diffstat (limited to 'wielder.lua')
-rw-r--r-- | wielder.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |