1
0

unhide list of mods in server list

* close https://codeberg.org/minenux/minetest-engine-multicraft2/issues/45
This commit is contained in:
mckaygerhard 2024-06-02 05:59:42 -04:00
parent f2f8f2c92e
commit f20c739c48

View File

@ -100,10 +100,10 @@ void sendAnnounce(AnnounceAction action,
server["mapgen"] = mg_name; server["mapgen"] = mg_name;
server["privs"] = g_settings->get("default_privs"); server["privs"] = g_settings->get("default_privs");
server["can_see_far_names"] = g_settings->getS16("player_transfer_distance") <= 0; server["can_see_far_names"] = g_settings->getS16("player_transfer_distance") <= 0;
/*server["mods"] = Json::Value(Json::arrayValue); server["mods"] = Json::Value(Json::arrayValue);
for (const ModSpec &mod : mods) { for (const ModSpec &mod : mods) {
server["mods"].append(mod.name); server["mods"].append(mod.name);
}*/ }
} else if (action == AA_UPDATE) { } else if (action == AA_UPDATE) {
if (lag) if (lag)
server["lag"] = lag; server["lag"] = lag;