1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00: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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 10 additions and 7 deletions

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;