1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-18 02:45:21 +02:00

Use content.luanti.org (#15360)

This commit is contained in:
rubenwardy
2024-11-02 20:40:33 +00:00
committed by GitHub
parent 5c5538685e
commit ba370d9841
6 changed files with 10 additions and 7 deletions

View File

@@ -397,7 +397,7 @@ void set_default_settings()
settings->setDefault("chat_font_size", "0"); // Default "font_size"
// ContentDB
settings->setDefault("contentdb_url", "https://content.minetest.net");
settings->setDefault("contentdb_url", "https://content.luanti.org");
settings->setDefault("contentdb_enable_updates_indicator", "true");
settings->setDefault("contentdb_max_concurrent_downloads", "3");

View File

@@ -1015,10 +1015,12 @@ static bool determine_subgame(GameParams *game_params)
infostream << "Using commanded gameid [" << gamespec.id << "]" << std::endl;
} else {
if (game_params->is_dedicated_server) {
std::string contentdb_url = g_settings->get("contentdb_url");
// If this is a dedicated server and no gamespec has been specified,
// print a friendly error pointing to ContentDB.
errorstream << "To run a " PROJECT_NAME_C " server, you need to select a game using the '--gameid' argument." << std::endl
<< "Check out https://content.minetest.net for a selection of games to pick from and download." << std::endl;
<< "Check out " << contentdb_url << " for a selection of games to pick from and download." << std::endl;
}
return false;