Make power distribution more efficient.

Conflicts:
	technic/machines/register/cables.lua
This commit is contained in:
Novatux
2013-08-29 09:34:40 +02:00
committed by ShadowNinja
parent 90208930e5
commit f4ac2b8c1e
3 changed files with 39 additions and 11 deletions

View File

@ -58,6 +58,8 @@ minetest.register_on_placenode(function(pos, node)
for machine_name, _ in pairs(machine_list) do
if node.name == machine_name then
technic.update_cables(pos, tier, true)
technic.networks = {}
return
end
end
end
@ -69,6 +71,8 @@ minetest.register_on_dignode(function(pos, node)
for machine_name, _ in pairs(machine_list) do
if node.name == machine_name then
technic.update_cables(pos, tier, true)
technic.networks = {}
return
end
end
end