summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-12-15 15:03:41 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-12-15 15:03:41 -0500
commit8ef3f20c3cfa6ca8b44244676c7f552a9d2b9e52 (patch)
tree31848c5d04f07fb59c66122ac835233e313b9177
parentf3d8b47b20feac740057984a70f93f38252619eb (diff)
adapt to changes in Pipeworks API
-rw-r--r--technic/machines/HV/quarry.lua2
-rw-r--r--technic/machines/other/injector.lua4
-rw-r--r--technic/machines/register/common.lua2
3 files changed, 4 insertions, 4 deletions
diff --git a/technic/machines/HV/quarry.lua b/technic/machines/HV/quarry.lua
index 15b6662..57adbca 100644
--- a/technic/machines/HV/quarry.lua
+++ b/technic/machines/HV/quarry.lua
@@ -127,7 +127,7 @@ end
local function send_items(items, pos, node)
for _, item in pairs(items) do
- local tube_item = tube_item(vector.new(pos), item)
+ local tube_item = pipeworks.tube_item(vector.new(pos), item)
tube_item:get_luaentity().start_pos = vector.new(pos)
tube_item:setvelocity(vector.new(0, 1, 0))
tube_item:setacceleration({x=0, y=0, z=0})
diff --git a/technic/machines/other/injector.lua b/technic/machines/other/injector.lua
index 1bc2bec..f59867c 100644
--- a/technic/machines/other/injector.lua
+++ b/technic/machines/other/injector.lua
@@ -86,7 +86,7 @@ function inject_items (pos)
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=0, y=-1, z=0})
item1:setacceleration({x=0, y=0, z=0})
@@ -104,7 +104,7 @@ function inject_items (pos)
if stack then
local item0=stack:to_table()
if item0 then
- 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=0, y=-1, z=0})
item1:setacceleration({x=0, y=0, z=0})
diff --git a/technic/machines/register/common.lua b/technic/machines/register/common.lua
index 054d627..583f0bc 100644
--- a/technic/machines/register/common.lua
+++ b/technic/machines/register/common.lua
@@ -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})