diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-03-17 09:02:34 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-03-17 10:07:34 -0400 |
commit | 88ad79163dab74d247d6e70aba5ec7b1f7d4a3b8 (patch) | |
tree | e9b38d370410b17eb0ee59098de9b8899a5368cf /pipes.lua | |
parent | bd4a27d1722a8e31a5f47a2405f1f9a3871e3341 (diff) |
add screwdriver rotation handling on most pipes-related nodes
caveats: in order to cleanly handle the entry panel, valve, and sensor
I had to rotate the valve and sensor models 90 degrees
so that their in-/outlet pipes point the same direction as the
entry panel.
This also enables proper handling of a valve or sensor turned vertically.
Some objects have rotation disabled entirely (as flipping them over/around makes
no sense)
When a valve is rotated, it is turned off automatically, to work around a glitch in
the rotation code.
Diffstat (limited to 'pipes.lua')
-rw-r--r-- | pipes.lua | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -80,7 +80,8 @@ for index, connects in ipairs(cconnects) do end, after_dig_node = function(pos) pipeworks.scan_for_pipe_objects(pos) - end + end, + on_rotate = false }) local pgroups = {snappy = 3, pipe = 1, not_in_creative_inventory = 1} @@ -110,7 +111,8 @@ for index, connects in ipairs(cconnects) do end, after_dig_node = function(pos) pipeworks.scan_for_pipe_objects(pos) - end + end, + on_rotate = false }) table.insert(pipes_empty_nodenames, "pipeworks:pipe_"..index.."_empty") @@ -134,6 +136,8 @@ if REGISTER_COMPATIBILITY then after_place_node = function(pos) pipeworks.scan_for_pipe_objects(pos) end, + on_rotate = false + }) minetest.register_node(cloaded, { drawtype = "airlike", @@ -145,6 +149,8 @@ if REGISTER_COMPATIBILITY then after_place_node = function(pos) pipeworks.scan_for_pipe_objects(pos) end, + on_rotate = false + }) for xm = 0, 1 do for xp = 0, 1 do |