Added support to autoroute code for technic deployer and nodebreaker

This commit is contained in:
Vanessa Ezekowitz 2013-06-26 03:34:28 -04:00
parent 6b411ab8ad
commit 01bfa588ce

View File

@ -125,6 +125,19 @@ function tube_autoroute(pos)
and nzp.param2 == 2 then and nzp.param2 == 2 then
pzp=1 end 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 --node breakers
if string.find(nxm.name, "pipeworks:nodebreaker_") ~= nil if string.find(nxm.name, "pipeworks:nodebreaker_") ~= nil
@ -140,6 +153,19 @@ function tube_autoroute(pos)
and nzp.param2 == 2 then and nzp.param2 == 2 then
pzp=1 end 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 -- autocrafter
if string.find(nxm.name, "pipeworks:autocrafter") ~= nil then pxm = 1 end if string.find(nxm.name, "pipeworks:autocrafter") ~= nil then pxm = 1 end