summaryrefslogtreecommitdiffstats
path: root/src/Root.cpp
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2016-02-08 11:26:21 +0100
committerLogicParrot <LogicParrot@users.noreply.github.com>2016-02-08 11:26:21 +0100
commitdd342435214e118b0476b58c73f915542aae42cc (patch)
treef78ec99594892c3d41c0cf707ec6ac5fd5e7753b /src/Root.cpp
parentMerge pull request #2961 from LogicParrot/enforce (diff)
downloadcuberite-dd342435214e118b0476b58c73f915542aae42cc.tar
cuberite-dd342435214e118b0476b58c73f915542aae42cc.tar.gz
cuberite-dd342435214e118b0476b58c73f915542aae42cc.tar.bz2
cuberite-dd342435214e118b0476b58c73f915542aae42cc.tar.lz
cuberite-dd342435214e118b0476b58c73f915542aae42cc.tar.xz
cuberite-dd342435214e118b0476b58c73f915542aae42cc.tar.zst
cuberite-dd342435214e118b0476b58c73f915542aae42cc.zip
Diffstat (limited to '')
-rw-r--r--src/Root.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Root.cpp b/src/Root.cpp
index 1a39b09a5..7d5b22137 100644
--- a/src/Root.cpp
+++ b/src/Root.cpp
@@ -349,9 +349,9 @@ void cRoot::LoadGlobalSettings()
void cRoot::LoadWorlds(cSettingsRepositoryInterface & a_Settings, bool a_IsNewIniFile)
{
- // First get the default world
if (a_IsNewIniFile)
{
+ a_Settings.AddValue("Worlds", "DefaultWorld", "world");
a_Settings.AddValue("Worlds", "World", "world_nether");
a_Settings.AddValue("Worlds", "World", "world_end");
m_pDefaultWorld = new cWorld("world");
@@ -361,6 +361,7 @@ void cRoot::LoadWorlds(cSettingsRepositoryInterface & a_Settings, bool a_IsNewIn
return;
}
+ // First get the default world
AString DefaultWorldName = a_Settings.GetValueSet("Worlds", "DefaultWorld", "world");
m_pDefaultWorld = new cWorld(DefaultWorldName.c_str());
m_WorldsByName[ DefaultWorldName ] = m_pDefaultWorld;