summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-06-26 03:34:28 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-06-26 03:34:28 -0400
commit01bfa588cebf6074422bc7970da2df8953a4a805 (patch)
tree0a591eb6aea184b3de49510b0a3ea3f4cae717cd
parent6b411ab8ad1cb49dd50653629f8029617fbab2aa (diff)
downloadpipeworks-01bfa588cebf6074422bc7970da2df8953a4a805.tar
pipeworks-01bfa588cebf6074422bc7970da2df8953a4a805.tar.gz
pipeworks-01bfa588cebf6074422bc7970da2df8953a4a805.tar.bz2
pipeworks-01bfa588cebf6074422bc7970da2df8953a4a805.tar.xz
pipeworks-01bfa588cebf6074422bc7970da2df8953a4a805.zip
Added support to autoroute code for technic deployer and nodebreaker
-rw-r--r--autoplace.lua26
1 files changed, 26 insertions, 0 deletions
diff --git a/autoplace.lua b/autoplace.lua
index ac97d30..30965c4 100644
--- a/autoplace.lua
+++ b/autoplace.lua
@@ -125,6 +125,19 @@ function tube_autoroute(pos)
and nzp.param2 == 2 then
pzp=1 end
+ if string.find(nxm.name, "technic:deployer_") ~= nil
+ and nxm.param2 == 1 then
+ pxm=1 end
+ if string.find(nxp.name, "technic:deployer_") ~= nil
+ and nxp.param2 == 3 then
+ pxp=1 end
+ if string.find(nzm.name, "technic:deployer_") ~= nil
+ and nzm.param2 == 0 then
+ pzm=1 end
+ if string.find(nzp.name, "technic:deployer_") ~= nil
+ and nzp.param2 == 2 then
+ pzp=1 end
+
--node breakers
if string.find(nxm.name, "pipeworks:nodebreaker_") ~= nil
@@ -140,6 +153,19 @@ function tube_autoroute(pos)
and nzp.param2 == 2 then
pzp=1 end
+ if string.find(nxm.name, "technic:nodebreaker_") ~= nil
+ and nxm.param2 == 1 then
+ pxm=1 end
+ if string.find(nxp.name, "technic:nodebreaker_") ~= nil
+ and nxp.param2 == 3 then
+ pxp=1 end
+ if string.find(nzm.name, "technic:nodebreaker_") ~= nil
+ and nzm.param2 == 0 then
+ pzm=1 end
+ if string.find(nzp.name, "technic:nodebreaker_") ~= nil
+ and nzp.param2 == 2 then
+ pzp=1 end
+
-- autocrafter
if string.find(nxm.name, "pipeworks:autocrafter") ~= nil then pxm = 1 end