diff options
Diffstat (limited to 'src/server.cpp')
-rw-r--r-- | src/server.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/server.cpp b/src/server.cpp index de23820dd..1e2c445f7 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -222,12 +222,9 @@ Server::Server( infostream<<"- world: "<<m_path_world<<std::endl; infostream<<"- game: "<<m_gamespec.path<<std::endl; - // Initialize default settings and override defaults with those provided - // by the game - set_default_settings(g_settings); - Settings gamedefaults; - getGameMinetestConfig(gamespec.path, gamedefaults); - override_default_settings(g_settings, &gamedefaults); + // Create world if it doesn't exist + if(!initializeWorld(m_path_world, m_gamespec.id)) + throw ServerError("Failed to initialize world"); // Create server thread m_thread = new ServerThread(this); @@ -235,10 +232,6 @@ Server::Server( // Create emerge manager m_emerge = new EmergeManager(this); - // Create world if it doesn't exist - if(!initializeWorld(m_path_world, m_gamespec.id)) - throw ServerError("Failed to initialize world"); - // Create ban manager std::string ban_path = m_path_world + DIR_DELIM "ipban.txt"; m_banmanager = new BanManager(ban_path); |