File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ local S = technic.getter
77local mat = technic .materials
88
99local cable_entry = " ^technic_cable_connection_overlay.png"
10+ local no_network_infotext = S (" @1 Has No Network" , S (" Switching Station" ))
1011
1112minetest .register_craft ({
1213 output = " technic:switching_station" ,
@@ -21,7 +22,7 @@ local function start_network(pos)
2122 local tier = technic .sw_pos2tier (pos )
2223 if not tier then
2324 local meta = minetest .get_meta (pos )
24- meta :set_string (" infotext" , S ( " @1 Has No Network " , S ( " Switching Station " )) )
25+ meta :set_string (" infotext" , no_network_infotext )
2526 else
2627 local network_id = technic .sw_pos2network (pos ) or technic .create_network (pos )
2728 local network = network_id and technic .networks [network_id ]
@@ -116,7 +117,7 @@ minetest.register_node("technic:switching_station",{
116117 end
117118 end
118119 end
119- meta :set_string (" infotext" , infotext )
120+ meta :set_string (" infotext" , infotext or no_network_infotext )
120121 else
121122 -- Network does not exist yet, attempt to create new network here
122123 start_network (pos )
You can’t perform that action at this time.
0 commit comments