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:
@ -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
|
||||
|
Reference in New Issue
Block a user