1
0
mirror of https://github.com/mt-mods/pipeworks.git synced 2025-06-29 14:50:41 +02:00

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.
This commit is contained in:
Zefram
2014-08-14 21:59:15 +01:00
committed by Novatux
parent b77146f29c
commit 7915e7f51e
3 changed files with 10 additions and 6 deletions

View File

@ -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