mirror of
https://github.com/minetest-mods/technic.git
synced 2025-06-30 23:30:38 +02:00
Make power distribution more efficient.
Conflicts: technic/machines/register/cables.lua
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user