mirror of
https://github.com/minetest-mods/technic.git
synced 2025-06-30 23:30:38 +02:00
Handle both pipeworks APIs
The new API function is now renamed to pipeworks.tube_inject_item(), so use it under that name. If it is not available, synthesise the new API in terms of the old one.
This commit is contained in:
@ -119,7 +119,7 @@ end
|
||||
|
||||
local function send_items(items, pos, node)
|
||||
for _, item in pairs(items) do
|
||||
pipeworks.tube_item(pos, pos, vector.new(0, 1, 0), item)
|
||||
technic.tube_inject_item(pos, pos, vector.new(0, 1, 0), item)
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user