diff --git a/technic/machines/register/battery_box.lua b/technic/machines/register/battery_box.lua index 6fe5574..190ddbf 100644 --- a/technic/machines/register/battery_box.lua +++ b/technic/machines/register/battery_box.lua @@ -193,7 +193,7 @@ function technic.register_battery_box(data) local run = function(pos, node) local meta = minetest.get_meta(pos) - local network_id = tonumber(meta:get_string(tier.."_network"), 16) + local network_id = tonumber(meta:get_string(tier.."_network")) if not technic.networks[network_id] then meta:set_string("infotext", S("%s Battery Box Has No Network"):format(tier)) diff --git a/technic/machines/switching_station.lua b/technic/machines/switching_station.lua index bd34a0a..e97e761 100644 --- a/technic/machines/switching_station.lua +++ b/technic/machines/switching_station.lua @@ -134,7 +134,8 @@ local check_node_subp = function(network, pos, machines, sw_pos, from_below, net --dprint(name.." is a "..machines[name]) local meta = minetest.get_meta(pos) -- Normal tostring() does not have enough precision, neither does meta:set_int() - meta:set_string(network.tier.."_network", string.format("%X", network_id)) + -- Bug: Cannot use hexadecimal notation for compression (LuaJIT Windows bug, #911) + meta:set_string(network.tier.."_network", string.format("%.20g", network_id)) if eu_type == technic.producer then add_network_node(network.PR_nodes, pos, network_id)