diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2015-02-07 01:41:44 -0500 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2015-02-07 01:41:44 -0500 |
commit | e33b662274982bf6be8213975675407633d5d92e (patch) | |
tree | 3e76e9562788154c4a6d8212ec0bc534ee424020 /autoplace_tubes.lua | |
parent | f46de19ff06c60458c5f1bf9eaba33f90be01f78 (diff) |
remove obsolete calls to register_on_placenode/dignode
they're slow and obsolete
Diffstat (limited to 'autoplace_tubes.lua')
-rw-r--r-- | autoplace_tubes.lua | 16 |
1 files changed, 0 insertions, 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 |