forked from mtcontrib/pipeworks
remove obsolete calls to register_on_placenode/dignode
they're slow and obsolete
This commit is contained in:
parent
f46de19ff0
commit
e33b662274
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user