Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions technic/machines/network.lua
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,8 @@ function technic.network_infotext(network_id, text)
local count = 0
for _ in pairs(network.all_nodes) do count = count + 1 end
return S("Building Network: @1 Nodes", count)
else
return network.infotext
end
return network.infotext
end
end

Expand Down
5 changes: 3 additions & 2 deletions technic/machines/switching_station.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ local S = technic.getter
local mat = technic.materials

local cable_entry = "^technic_cable_connection_overlay.png"
local no_network_infotext = S("@1 Has No Network", S("Switching Station"))

minetest.register_craft({
output = "technic:switching_station",
Expand All @@ -21,7 +22,7 @@ local function start_network(pos)
local tier = technic.sw_pos2tier(pos)
if not tier then
local meta = minetest.get_meta(pos)
meta:set_string("infotext", S("@1 Has No Network", S("Switching Station")))
meta:set_string("infotext", no_network_infotext)
else
local network_id = technic.sw_pos2network(pos) or technic.create_network(pos)
local network = network_id and technic.networks[network_id]
Expand Down Expand Up @@ -116,7 +117,7 @@ minetest.register_node("technic:switching_station",{
end
end
end
meta:set_string("infotext", infotext)
meta:set_string("infotext", infotext or no_network_infotext)
else
-- Network does not exist yet, attempt to create new network here
start_network(pos)
Expand Down
Loading