summaryrefslogtreecommitdiffstats
path: root/source/Root.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-11-07 23:33:46 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-11-07 23:33:46 +0100
commit41451100c171af3c21e10141d6651b1ef89477b6 (patch)
treec7028991822e81b8cc11adc57c6caaeddd39ffe7 /source/Root.cpp
parentFix for entity spawning in general (diff)
downloadcuberite-41451100c171af3c21e10141d6651b1ef89477b6.tar
cuberite-41451100c171af3c21e10141d6651b1ef89477b6.tar.gz
cuberite-41451100c171af3c21e10141d6651b1ef89477b6.tar.bz2
cuberite-41451100c171af3c21e10141d6651b1ef89477b6.tar.lz
cuberite-41451100c171af3c21e10141d6651b1ef89477b6.tar.xz
cuberite-41451100c171af3c21e10141d6651b1ef89477b6.tar.zst
cuberite-41451100c171af3c21e10141d6651b1ef89477b6.zip
Diffstat (limited to '')
-rw-r--r--source/Root.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/Root.cpp b/source/Root.cpp
index 8ec94629b..4760c3ef1 100644
--- a/source/Root.cpp
+++ b/source/Root.cpp
@@ -285,7 +285,10 @@ void cRoot::LoadWorlds(cIniFile & IniFile)
if (!FoundAdditionalWorlds)
{
- IniFile.AddKeyComment("Worlds", " World=secondworld");
+ if (IniFile.GetKeyComment("Worlds", 0) != " World=secondworld")
+ {
+ IniFile.AddKeyComment("Worlds", " World=secondworld");
+ }
}
}