summaryrefslogtreecommitdiffstats
path: root/source/Root.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2013-11-08 17:41:46 +0100
committerMattes D <github@xoft.cz>2013-11-08 17:41:46 +0100
commitd33112b6b1d4f36daeae63d6aa81864254ed9135 (patch)
treee18debe737314c0eb9014add419069be0e015495 /source/Root.cpp
parentMerge pull request #322 from tonibm19/master (diff)
parentAdded hardcore client effect (diff)
downloadcuberite-d33112b6b1d4f36daeae63d6aa81864254ed9135.tar
cuberite-d33112b6b1d4f36daeae63d6aa81864254ed9135.tar.gz
cuberite-d33112b6b1d4f36daeae63d6aa81864254ed9135.tar.bz2
cuberite-d33112b6b1d4f36daeae63d6aa81864254ed9135.tar.lz
cuberite-d33112b6b1d4f36daeae63d6aa81864254ed9135.tar.xz
cuberite-d33112b6b1d4f36daeae63d6aa81864254ed9135.tar.zst
cuberite-d33112b6b1d4f36daeae63d6aa81864254ed9135.zip
Diffstat (limited to 'source/Root.cpp')
-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");
+ }
}
}