summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-07-22 11:33:16 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-07-22 11:33:16 +0200
commit0a15e1f420402e797397ea447b1df96f6ea2106f (patch)
tree6876df8170be4b8d164cb062957d06061fb9dfea /src/World.cpp
parentMerge remote-tracking branch 'origin/master' into portals (diff)
downloadcuberite-0a15e1f420402e797397ea447b1df96f6ea2106f.tar
cuberite-0a15e1f420402e797397ea447b1df96f6ea2106f.tar.gz
cuberite-0a15e1f420402e797397ea447b1df96f6ea2106f.tar.bz2
cuberite-0a15e1f420402e797397ea447b1df96f6ea2106f.tar.lz
cuberite-0a15e1f420402e797397ea447b1df96f6ea2106f.tar.xz
cuberite-0a15e1f420402e797397ea447b1df96f6ea2106f.tar.zst
cuberite-0a15e1f420402e797397ea447b1df96f6ea2106f.zip
Diffstat (limited to '')
-rw-r--r--src/World.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/World.cpp b/src/World.cpp
index 9dc28afea..2736e77d3 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -579,6 +579,11 @@ void cWorld::Start(void)
int Weather = IniFile.GetValueSetI("General", "Weather", (int)m_Weather);
m_TimeOfDay = IniFile.GetValueSetI("General", "TimeInTicks", m_TimeOfDay);
+ if (GetDimension() == dimOverworld)
+ {
+ m_NetherWorldName = IniFile.GetValueSet("LinkedWorlds", "NetherWorldName", DEFAULT_NETHER_NAME);
+ m_EndWorldName = IniFile.GetValueSet("LinkedWorlds", "EndWorldName", DEFAULT_END_NAME);
+ }
else
{
m_OverworldName = IniFile.GetValueSet("LinkedWorlds", "OverworldName", GetLinkedOverworldName());