summaryrefslogtreecommitdiff
path: root/autoplace.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-06-23 21:52:30 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-06-24 07:59:14 -0400
commitafc49819609f4f8103e8b2e78d4ca41423d65b2d (patch)
tree2d4f027f50e66ac2907d05e73a662766c0b8ffe2 /autoplace.lua
parent3a0fd39bf670a9210c962381455bb42cd3893fc0 (diff)
downloadpipeworks-afc49819609f4f8103e8b2e78d4ca41423d65b2d.tar
pipeworks-afc49819609f4f8103e8b2e78d4ca41423d65b2d.tar.gz
pipeworks-afc49819609f4f8103e8b2e78d4ca41423d65b2d.tar.bz2
pipeworks-afc49819609f4f8103e8b2e78d4ca41423d65b2d.tar.xz
pipeworks-afc49819609f4f8103e8b2e78d4ca41423d65b2d.zip
actually, filters should only connect from the right/output side since they
can't actually receive anything from the input side via a tube.
Diffstat (limited to 'autoplace.lua')
-rw-r--r--autoplace.lua17
1 files changed, 8 insertions, 9 deletions
diff --git a/autoplace.lua b/autoplace.lua
index 1f75f07..ac97d30 100644
--- a/autoplace.lua
+++ b/autoplace.lua
@@ -83,32 +83,31 @@ function tube_autoroute(pos)
-- handle regular filters
if string.find(nxm.name, "pipeworks:filter") ~= nil
- and (nxm.param2 == 0 or nxm.param2 == 2) then
+ and nxm.param2 == 0 then
pxm=1 end
if string.find(nxp.name, "pipeworks:filter") ~= nil
- and (nxp.param2 == 0 or nxp.param2 == 2) then
+ and nxp.param2 == 2 then
pxp=1 end
if string.find(nzm.name, "pipeworks:filter") ~= nil
- and (nzm.param2 == 1 or nzm.param2 == 3) then
+ and nzm.param2 == 3 then
pzm=1 end
if string.find(nzp.name, "pipeworks:filter") ~= nil
- and (nzp.param2 == 1 or nzp.param2 == 3) then
+ and nzp.param2 == 1 then
pzp=1 end
-- handle mese filters
if string.find(nxm.name, "pipeworks:mese_filter") ~= nil
- and (nxm.param2 == 0 or nxm.param2 == 2) then
+ and nxm.param2 == 0 then
pxm=1 end
if string.find(nxp.name, "pipeworks:mese_filter") ~= nil
- and (nxp.param2 == 0 or nxp.param2 == 2) then
+ and nxp.param2 == 2 then
pxp=1 end
-
if string.find(nzm.name, "pipeworks:mese_filter") ~= nil
- and (nzm.param2 == 1 or nzm.param2 == 3) then
+ and nzm.param2 == 3 then
pzm=1 end
if string.find(nzp.name, "pipeworks:mese_filter") ~= nil
- and (nzp.param2 == 1 or nzp.param2 == 3) then
+ and nzp.param2 == 1 then
pzp=1 end
-- handle deployers