Fix map parameter load order

master
kwolekr 2014-12-30 12:30:14 -05:00
parent 3d29be24e0
commit a3d7203be5
1 changed files with 4 additions and 2 deletions

View File

@ -295,10 +295,12 @@ Server::Server(
// Lock environment // Lock environment
JMutexAutoLock envlock(m_env_mutex); JMutexAutoLock envlock(m_env_mutex);
// Create the Map and load parameters // Load mapgen params from Settings
ServerMap *servermap = new ServerMap(path_world, this, m_emerge);
m_emerge->loadMapgenParams(); m_emerge->loadMapgenParams();
// Create the Map (loads map_meta.txt, overriding configured mapgen params)
ServerMap *servermap = new ServerMap(path_world, this, m_emerge);
// Initialize scripting // Initialize scripting
infostream<<"Server: Initializing Lua"<<std::endl; infostream<<"Server: Initializing Lua"<<std::endl;