From b8c0bfb43054554ffdba7e8ce1548ee50ae02c84 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 14 Nov 2018 22:41:28 +0100 Subject: Revert "Merge branch 'master' of https://github.com/minetest-mods/pipeworks" This reverts commit 51e89c90bf50dfab3690cffc9ae4d6e1e58d9a0e, reversing changes made to 62a1724635c4dde3bcfb83ae8ac968b102db5989. --- autoplace_tubes.lua | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'autoplace_tubes.lua') diff --git a/autoplace_tubes.lua b/autoplace_tubes.lua index a3a6aee..0d28e64 100644 --- a/autoplace_tubes.lua +++ b/autoplace_tubes.lua @@ -111,22 +111,6 @@ function pipeworks.after_dig(pos) pipeworks.scan_for_tube_objects(pos) end --- Screwdriver calls this function before rotating a node. --- However, connections must be updated *after* the node is rotated --- So, this function does the rotation itself and returns `true`. --- (Note: screwdriver already checks for protected areas.) - --- This should only be used for tubes that don't autoconnect. --- (For example, one-way tubes.) --- Autoconnecting tubes will just revert back to their original state --- when they are updated. -function pipeworks.on_rotate(pos, node, user, mode, new_param2) - node.param2 = new_param2 - minetest.set_node(pos, node) - pipeworks.scan_for_tube_objects(pos) - return true -end - if minetest.get_modpath("mesecons_mvps") then mesecon.register_on_mvps_move(function(moved_nodes) for _, n in ipairs(moved_nodes) do -- cgit v1.2.3