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:
parent
858c95630f
commit
95ce5583a9
3 changed files with 19 additions and 10 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue