mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Respect game mapgen flags and save world noise params
This commit is contained in:
parent
9da99efca2
commit
f6e4c5d9cf
15 changed files with 128 additions and 151 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue