1
0
mirror of https://github.com/mt-mods/pipeworks.git synced 2025-07-03 08:40:34 +02:00

added a "sealed" entry/exit panel (really just a horizontal pipe with a metal

panel overlayed into the middle).   Also, tweaked pipes to always drop the
empty ones.
This commit is contained in:
Vanessa Ezekowitz
2013-01-01 16:30:21 -05:00
parent 6cca6f9857
commit 1a562d23a8
3 changed files with 69 additions and 1 deletions

View File

@ -149,6 +149,28 @@ function pipes_scansurroundings(pos)
pzp=1
end
-- ...sealed pipe entry/exit...
if (string.find(nxm.name, "pipeworks:entry_panel") ~= nil)
and (nxm.param2 == 1 or nxm.param2 == 3) then
pxm=1
end
if (string.find(nxp.name, "pipeworks:entry_panel") ~= nil)
and (nxp.param2 == 1 or nxp.param2 == 3) then
pxp=1
end
if (string.find(nzm.name, "pipeworks:entry_panel") ~= nil)
and (nzm.param2 == 0 or nzm.param2 == 2) then
pzm=1
end
if (string.find(nzp.name, "pipeworks:entry_panel") ~= nil)
and (nzp.param2 == 0 or nzp.param2 == 2) then
pzp=1
end
-- ...pumps, grates, and storage tanks
if (string.find(nym.name, "pipeworks:storage_tank_") ~= nil) or