1
0
mirror of https://github.com/mt-mods/pipeworks.git synced 2024-07-25 11:10:19 +02:00

remove obsolete calls to register_on_placenode/dignode

they're slow and obsolete
This commit is contained in:
Vanessa Ezekowitz 2015-02-07 01:41:44 -05:00
parent f46de19ff0
commit e33b662274

View File

@ -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