From e33b662274982bf6be8213975675407633d5d92e Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Sat, 7 Feb 2015 01:41:44 -0500 Subject: [PATCH] remove obsolete calls to register_on_placenode/dignode they're slow and obsolete --- autoplace_tubes.lua | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/autoplace_tubes.lua b/autoplace_tubes.lua index b6ed8b7..1d4732a 100644 --- a/autoplace_tubes.lua +++ b/autoplace_tubes.lua @@ -103,22 +103,6 @@ function pipeworks.scan_for_tube_objects(pos) end end -minetest.register_on_placenode(function(pos, newnode, placer, oldnode, itemstack) - if minetest.registered_items[newnode.name] - and minetest.registered_items[newnode.name].tube - and minetest.registered_items[newnode.name].tube.connect_sides then - pipeworks.scan_for_tube_objects(pos) - end -end) - -minetest.register_on_dignode(function(pos, oldnode, digger) - if minetest.registered_items[oldnode.name] - and minetest.registered_items[oldnode.name].tube - and minetest.registered_items[oldnode.name].tube.connect_sides then - pipeworks.scan_for_tube_objects(pos) - end -end) - if minetest.get_modpath("mesecons_mvps") then mesecon.register_on_mvps_move(function(moved_nodes) for _, n in ipairs(moved_nodes) do