mirror of
https://github.com/minetest-mods/technic.git
synced 2025-07-02 08:10:36 +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:
@ -52,7 +52,7 @@ function technic.send_items(pos, x_velocity, z_velocity, output_name)
|
||||
local item0 = stack:to_table()
|
||||
if item0 then
|
||||
item0["count"] = "1"
|
||||
pipeworks.tube_item(pos, pos, vector.new(x_velocity, 0, z_velocity), item0)
|
||||
technic.tube_inject_item(pos, pos, vector.new(x_velocity, 0, z_velocity), item0)
|
||||
stack:take_item(1)
|
||||
inv:set_stack(output_name, i, stack)
|
||||
return
|
||||
|
Reference in New Issue
Block a user