From 07fe643d030767ed0309dd2df95c727e4a1784b8 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Mon, 24 Feb 2025 18:47:57 +0900 Subject: [PATCH] . --- exp_legacy/module/modules/control/vlayer.lua | 6 ------ 1 file changed, 6 deletions(-) diff --git a/exp_legacy/module/modules/control/vlayer.lua b/exp_legacy/module/modules/control/vlayer.lua index 0b6a241d..754608f7 100644 --- a/exp_legacy/module/modules/control/vlayer.lua +++ b/exp_legacy/module/modules/control/vlayer.lua @@ -512,29 +512,23 @@ local function handle_circuit_power_load() for _, v in pairs(spawn_pole) do local e = game.surfaces[1].find_entity(v.n, v.p) - if e and e.valid and e.is_connected_to_electric_network() and e.electric_network_id and not processed[e.electric_network_id] then local ens = e.electric_network_statistics local ensi = 0 local enso = 0 - for _, c in pairs(ens.input_counts) do ensi = ensi + c end - for _, c in pairs(ens.output_counts) do enso = enso + c end - processed[e.electric_network_id] = { i = ensi, o = enso } end end - for _, v in pairs(processed) do pi = pi + v.i po = po + v.o end - return (pi * 10000 / po) or 0 end