diff options
author | root <root@linuxworks.belug.de> | 2017-11-11 11:26:39 +0100 |
---|---|---|
committer | root <root@linuxworks.belug.de> | 2017-11-11 11:26:39 +0100 |
commit | aee5397c713c84ac37d85d55c14122f5214eac3b (patch) | |
tree | 4055f32fab07863ead3c292d2077eccf1235c574 /autoplace_pipes.lua | |
parent | 31a6107b82ba1373289423b414b54b2818e61f3c (diff) | |
parent | 8fa259c93fbef467822f710a33537a76f608b7cb (diff) |
Merge branch 'master' of https://github.com/minetest-mods/pipeworks
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..ec4b27e 100644 --- a/autoplace_pipes.lua +++ b/autoplace_pipes.lua @@ -159,6 +159,18 @@ function pipeworks.scan_pipe_surroundings(pos) pzp = f or pzp end +-- ...straight-only pipe... + + local match,a,b,c,d,e,f = pipeworks.get_axis_dir(nodetable, "pipeworks:straight_pipe") + 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 + -- ... other nodes local def_left = minetest.registered_nodes[nxp.name] -- the node that {pos} is to the left of (not the |