From b96a1fdbe6af2730173b268bef32dd04bca56770 Mon Sep 17 00:00:00 2001 From: Vitaliy Olkhin Date: Thu, 9 Jan 2025 12:33:38 +0500 Subject: [PATCH] code analiz --- technic/machines/switching_station.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/technic/machines/switching_station.lua b/technic/machines/switching_station.lua index 1ca59d7..622b05e 100644 --- a/technic/machines/switching_station.lua +++ b/technic/machines/switching_station.lua @@ -121,8 +121,10 @@ end -- Generic function to add found connected nodes to the right classification array -- !! IMPORTANT: register/cables.lua -> clear_networks() must be kept in sync local check_node_subp = function(network, pos, machines, sw_pos, from_below, network_id, queue) + --minetest.log('action', 'Check node: ' .. dump(pos)) technic.get_or_load_node(pos) local name = minetest.get_node(pos).name + minetest.log('action', 'Check node name: ' .. dump(network.tier)) if technic.is_tier_cable(name, network.tier) then add_cable_node(network.all_nodes, pos, network_id, queue) @@ -185,6 +187,7 @@ end local touch_nodes = function(list, tier) for _, pos in ipairs(list) do + --minetest.log("action", 'pos: ' .. dump(pos)) local meta = minetest.get_meta(pos) meta:set_int(tier.."_EU_timeout", 2) -- Touch node end