adapt to changes in Pipeworks API
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Sun, 15 Dec 2013 20:03:41 +0000 (15:03 -0500)
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Sun, 15 Dec 2013 20:03:41 +0000 (15:03 -0500)
technic/machines/HV/quarry.lua
technic/machines/other/injector.lua
technic/machines/register/common.lua

index 15b66622b6744915bd6abbe4468c422ca4d1fa4d..57adbca13b00f2b067e7f9c84cafec849cb7d609 100644 (file)
@@ -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})
index 1bc2bec641662bee8f67b0983be7d3265bf4a581..f59867cdb12eb92423465dd04e2f3c655f16664e 100644 (file)
@@ -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})
index 054d627720444070568249353de407b9d261042c..583f0bc6e893dd7d0293218741115d01731fb7ac 100644 (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})