diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-06-08 01:00:49 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-06-08 01:00:49 -0400 |
commit | b68a66ef4ac159705a734df967e3fe29a87aeaaf (patch) | |
tree | 2e71d71a22ac6ab06b5d051b839c15ee8bd84648 /autoplace.lua | |
parent | a6faa00bdfc82be521c2c2a23246dabe7c401b14 (diff) |
Add vertical version of airtight pipe entry
if automatically rotates to connect to the thing you point at, if a connection
is possible.
Diffstat (limited to 'autoplace.lua')
-rw-r--r-- | autoplace.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/autoplace.lua b/autoplace.lua index ddfdb76..c58a58b 100644 --- a/autoplace.lua +++ b/autoplace.lua @@ -209,6 +209,17 @@ function pipes_scansurroundings(pos) pzp=1 end + if (string.find(nym.name, "pipeworks:entry_panel") ~= nil) + and nym.param2 == 13 then + pym=1 + end + + if (string.find(nyp.name, "pipeworks:entry_panel") ~= nil) + and nyp.param2 == 13 then + pyp=1 + end + + -- ...pumps, grates... if (string.find(nym.name, "pipeworks:grating") ~= nil) or |