adapt to changes in Pipeworks API

This commit is contained in:
Vanessa Ezekowitz
2013-12-15 15:03:41 -05:00
parent f3d8b47b20
commit 8ef3f20c3c
3 changed files with 4 additions and 4 deletions

View File

@ -48,7 +48,7 @@ function technic.send_items(pos, x_velocity, z_velocity)
local item0 = stack:to_table()
if item0 then
item0["count"] = "1"
local item1 = tube_item({x=pos.x, y=pos.y, z=pos.z}, item0)
local item1 = pipeworks.tube_item({x=pos.x, y=pos.y, z=pos.z}, item0)
item1:get_luaentity().start_pos = {x=pos.x, y=pos.y, z=pos.z}
item1:setvelocity({x=x_velocity, y=0, z=z_velocity})
item1:setacceleration({x=0, y=0, z=0})