sfence
2022-11-04 66e20a9231b9fea823f9b683e495c57ef9a4ad41
technic/machines/switching_station.lua
@@ -133,7 +133,8 @@
   --dprint(name.." is a "..machines[name])
   local meta = minetest.get_meta(pos)
   meta:set_string(network.tier.."_network", minetest.pos_to_string(sw_pos))
   -- Normal tostring() does not have enough precision, neither does meta:set_int()
   meta:set_string(network.tier.."_network", string.format("%X", network_id))
   if     eu_type == technic.producer then
      add_network_node(network.PR_nodes, pos, network_id)
@@ -354,6 +355,8 @@
         BA_eu_supply = BA_eu_supply + meta1:get_int(eu_supply_str)
         BA_eu_demand = BA_eu_demand + meta1:get_int(eu_demand_str)
      end
      -- Expose value for the supply converter
      meta:set_int("ba_demand", BA_eu_demand)
      --dprint("Total BA supply:"..BA_eu_supply)
      --dprint("Total BA demand:"..BA_eu_demand)