mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-12-29 17:17:29 +01:00
actually, filters should only connect from the right/output side since they
can't actually receive anything from the input side via a tube.
This commit is contained in:
parent
3a0fd39bf6
commit
afc4981960
@ -83,32 +83,31 @@ function tube_autoroute(pos)
|
|||||||
-- handle regular filters
|
-- handle regular filters
|
||||||
|
|
||||||
if string.find(nxm.name, "pipeworks:filter") ~= nil
|
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
|
pxm=1 end
|
||||||
if string.find(nxp.name, "pipeworks:filter") ~= nil
|
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
|
pxp=1 end
|
||||||
if string.find(nzm.name, "pipeworks:filter") ~= nil
|
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
|
pzm=1 end
|
||||||
if string.find(nzp.name, "pipeworks:filter") ~= nil
|
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
|
pzp=1 end
|
||||||
|
|
||||||
-- handle mese filters
|
-- handle mese filters
|
||||||
|
|
||||||
if string.find(nxm.name, "pipeworks:mese_filter") ~= nil
|
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
|
pxm=1 end
|
||||||
if string.find(nxp.name, "pipeworks:mese_filter") ~= nil
|
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
|
pxp=1 end
|
||||||
|
|
||||||
if string.find(nzm.name, "pipeworks:mese_filter") ~= nil
|
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
|
pzm=1 end
|
||||||
if string.find(nzp.name, "pipeworks:mese_filter") ~= nil
|
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
|
pzp=1 end
|
||||||
|
|
||||||
-- handle deployers
|
-- handle deployers
|
||||||
|
Loading…
Reference in New Issue
Block a user