| | |
| | | local tier = network.tier |
| | | |
| | | -- Actually add it to the (cached) network |
| | | -- This is similar to check_node_subp |
| | | -- !! IMPORTANT: ../switching_station.lua -> check_node_subp() must be kept in sync |
| | | technic.cables[minetest.hash_node_position(pos)] = network_id |
| | | pos.visited = 1 |
| | | if technic.is_tier_cable(node.name, tier) then |
| | |
| | | elseif technic.machines[tier][node.name] then |
| | | -- Found a machine |
| | | local eu_type = technic.machines[tier][node.name] |
| | | meta:set_string(tier.."_network", string.format("%X", network_id)) |
| | | meta:set_string(tier.."_network", string.format("%.20g", network_id)) |
| | | if eu_type == technic.producer then |
| | | table.insert(network.PR_nodes, pos) |
| | | elseif eu_type == technic.receiver then |