summaryrefslogtreecommitdiff
path: root/autoplace.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-06-08 01:00:49 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-06-08 01:00:49 -0400
commitb68a66ef4ac159705a734df967e3fe29a87aeaaf (patch)
tree2e71d71a22ac6ab06b5d051b839c15ee8bd84648 /autoplace.lua
parenta6faa00bdfc82be521c2c2a23246dabe7c401b14 (diff)
downloadpipeworks-b68a66ef4ac159705a734df967e3fe29a87aeaaf.tar
pipeworks-b68a66ef4ac159705a734df967e3fe29a87aeaaf.tar.gz
pipeworks-b68a66ef4ac159705a734df967e3fe29a87aeaaf.tar.bz2
pipeworks-b68a66ef4ac159705a734df967e3fe29a87aeaaf.tar.xz
pipeworks-b68a66ef4ac159705a734df967e3fe29a87aeaaf.zip
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.lua11
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