diff options
author | Mattes D <github@xoft.cz> | 2013-11-08 17:41:46 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2013-11-08 17:41:46 +0100 |
commit | d33112b6b1d4f36daeae63d6aa81864254ed9135 (patch) | |
tree | e18debe737314c0eb9014add419069be0e015495 /source/Root.cpp | |
parent | Merge pull request #322 from tonibm19/master (diff) | |
parent | Added hardcore client effect (diff) | |
download | cuberite-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 '')
-rw-r--r-- | source/Root.cpp | 5 |
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"); + } } } |