diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-09-30 16:46:40 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-09-30 16:47:17 -0400 |
commit | 028c135fb761242b2207ef5efc997dc413353c1e (patch) | |
tree | 3aec16440ff708e305113135e1547a56b8260fcc /autoplace_pipes.lua | |
parent | 879b4489b21946306004506bea51b32f6d9de6a2 (diff) |
add pressure gaugeorigin/pressure-gauge
(doesn't work yet, and won't pass water)
Diffstat (limited to 'autoplace_pipes.lua')
-rw-r--r-- | autoplace_pipes.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/autoplace_pipes.lua b/autoplace_pipes.lua index a3f0b65..3ba510c 100644 --- a/autoplace_pipes.lua +++ b/autoplace_pipes.lua @@ -147,6 +147,18 @@ function pipeworks.scan_pipe_surroundings(pos) pzp = f or pzp end +-- ...pressure gauges... + + local match,a,b,c,d,e,f = pipeworks.get_axis_dir(nodetable, "pipeworks:pressure_gauge") + if match then + pxm = a or pxm + pxp = b or pxp + pym = c or pym + pyp = d or pyp + pzm = e or pzm + pzp = f or pzp + end + -- ...sealed pipe entry/exit... local match,a,b,c,d,e,f = pipeworks.get_axis_dir(nodetable, "pipeworks:entry_panel") |