1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

ServerEnvironment::loadDefaultMeta: Loading default meta is only possible for ServerEnv itself

This commit is contained in:
Loic Blot 2018-03-16 08:52:42 +01:00
parent 858c95630f
commit 95ce5583a9
No known key found for this signature in database
GPG key ID: EFAA458E8C153987
3 changed files with 19 additions and 10 deletions

View file

@ -274,13 +274,7 @@ Server::Server(
// Register us to receive map edit events
servermap->addEventReceiver(this);
// If file exists, load environment metadata
if (fs::PathExists(m_path_world + DIR_DELIM "env_meta.txt")) {
infostream << "Server: Loading environment metadata" << std::endl;
m_env->loadMeta();
} else {
m_env->loadDefaultMeta();
}
m_env->loadMeta();
m_liquid_transform_every = g_settings->getFloat("liquid_update");
m_max_chatmessage_length = g_settings->getU16("chat_message_max_size");