summaryrefslogtreecommitdiffstats
path: root/source/World.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-22 20:41:08 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-22 20:41:08 +0200
commit9dd0486faf6f52eb40e47f003d4c02eefc28c8f9 (patch)
tree3ca4ff0762816fe69ff0f7baf22232c9d30cf8f6 /source/World.cpp
parentMade redstone lamps turn on when powered and turn off when not powered. (diff)
downloadcuberite-9dd0486faf6f52eb40e47f003d4c02eefc28c8f9.tar
cuberite-9dd0486faf6f52eb40e47f003d4c02eefc28c8f9.tar.gz
cuberite-9dd0486faf6f52eb40e47f003d4c02eefc28c8f9.tar.bz2
cuberite-9dd0486faf6f52eb40e47f003d4c02eefc28c8f9.tar.lz
cuberite-9dd0486faf6f52eb40e47f003d4c02eefc28c8f9.tar.xz
cuberite-9dd0486faf6f52eb40e47f003d4c02eefc28c8f9.tar.zst
cuberite-9dd0486faf6f52eb40e47f003d4c02eefc28c8f9.zip
Diffstat (limited to '')
-rw-r--r--source/World.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/World.cpp b/source/World.cpp
index 2a73eb7ea..c8a7b9ded 100644
--- a/source/World.cpp
+++ b/source/World.cpp
@@ -215,7 +215,8 @@ cWorld::cWorld(const AString & a_WorldName) :
cIniFile IniFile(m_IniFileName);
IniFile.ReadFile();
- m_Dimension = (eDimension)(IniFile.GetValueSetI("General", "Dimension", 0));
+ AString Dimension = IniFile.GetValueSet("General", "Dimension", "Overworld");
+ m_Dimension = StringToDimension(Dimension);
switch (m_Dimension)
{
case dimNether:
@@ -226,7 +227,7 @@ cWorld::cWorld(const AString & a_WorldName) :
}
default:
{
- LOGWARNING("Unknown dimension: %d. Setting to Overworld (0)", m_Dimension);
+ LOGWARNING("Unknown dimension: \"%s\". Setting to Overworld", Dimension.c_str());
m_Dimension = dimOverworld;
break;
}