fix: MOTD not showing up without config.ini

Since we do an early return without a config.ini file, the MOTDSTRING will still be the default std::string value (""), causing the game to output "Gamemaster: ". To fix this, we'll just hardcode the preferred default value for now.
This commit is contained in:
Raymonf 2020-08-19 22:39:23 -04:00
parent e75049fc98
commit bb1ce5c28d
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ int settings::SPAWN_X = 179213;
int settings::SPAWN_Y = 268451;
int settings::SPAWN_Z = -4210;
std::string settings::MOTDSTRING;
std::string settings::MOTDSTRING = "Welcome to OpenFusion!";
void settings::init() {
INIReader reader("config.ini");