From 01bfa588cebf6074422bc7970da2df8953a4a805 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Wed, 26 Jun 2013 03:34:28 -0400 Subject: [PATCH] Added support to autoroute code for technic deployer and nodebreaker --- autoplace.lua | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) 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 -- 2.30.2