| | |
| | | |
| | | --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) |
| | |
| | | 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) |
| | | |