summaryrefslogtreecommitdiffstats
path: root/src/Generating/HeiGen.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-01-11 13:03:51 +0100
committermadmaxoft <github@xoft.cz>2014-01-11 13:03:51 +0100
commit37025fca778896d4dee35a8e580d0160e0b3e0db (patch)
tree73c7f42860391666c2bc8eb7fe9aa5117ddd9c3a /src/Generating/HeiGen.cpp
parentFixed cIniFile's SetValue(). (diff)
parentFixed generator adding values to ini file. (diff)
downloadcuberite-37025fca778896d4dee35a8e580d0160e0b3e0db.tar
cuberite-37025fca778896d4dee35a8e580d0160e0b3e0db.tar.gz
cuberite-37025fca778896d4dee35a8e580d0160e0b3e0db.tar.bz2
cuberite-37025fca778896d4dee35a8e580d0160e0b3e0db.tar.lz
cuberite-37025fca778896d4dee35a8e580d0160e0b3e0db.tar.xz
cuberite-37025fca778896d4dee35a8e580d0160e0b3e0db.tar.zst
cuberite-37025fca778896d4dee35a8e580d0160e0b3e0db.zip
Diffstat (limited to 'src/Generating/HeiGen.cpp')
-rw-r--r--src/Generating/HeiGen.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Generating/HeiGen.cpp b/src/Generating/HeiGen.cpp
index 051758f71..10710b4a1 100644
--- a/src/Generating/HeiGen.cpp
+++ b/src/Generating/HeiGen.cpp
@@ -72,6 +72,7 @@ cTerrainHeightGen * cTerrainHeightGen::CreateHeightGen(cIniFile &a_IniFile, cBio
{
// No match found, force-set the default and retry
LOGWARN("Unknown HeightGen \"%s\", using \"Biomal\" instead.", HeightGenName.c_str());
+ a_IniFile.DeleteValue("Generator", "HeightGen");
a_IniFile.SetValue("Generator", "HeightGen", "Biomal");
return CreateHeightGen(a_IniFile, a_BiomeGen, a_Seed, a_CacheOffByDefault);
}