summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-05-27 12:57:36 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-05-27 12:57:36 +0200
commit925f45a4fa3a3f42071639ebb6da20c6110af712 (patch)
tree292815b7fed9afd3c01e205694c83ecc2cca3787
parentAdded the CheckerBoardBiomes parameter for setting biomes that CheckerBoard generates (#179). Added string-to-biome conversion (#183). Added OreNests to default Structures configuration. (diff)
downloadcuberite-925f45a4fa3a3f42071639ebb6da20c6110af712.tar
cuberite-925f45a4fa3a3f42071639ebb6da20c6110af712.tar.gz
cuberite-925f45a4fa3a3f42071639ebb6da20c6110af712.tar.bz2
cuberite-925f45a4fa3a3f42071639ebb6da20c6110af712.tar.lz
cuberite-925f45a4fa3a3f42071639ebb6da20c6110af712.tar.xz
cuberite-925f45a4fa3a3f42071639ebb6da20c6110af712.tar.zst
cuberite-925f45a4fa3a3f42071639ebb6da20c6110af712.zip
-rw-r--r--source/cChunkGenerator.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/source/cChunkGenerator.cpp b/source/cChunkGenerator.cpp
index e8565f6ac..72e293b3f 100644
--- a/source/cChunkGenerator.cpp
+++ b/source/cChunkGenerator.cpp
@@ -113,8 +113,13 @@ void cChunkGenerator::InitBiomeGen(cIniFile & a_IniFile)
if (NoCaseCompare(BiomeGenName, "constant") == 0)
{
- int Biome = a_IniFile.GetValueI("Generator", "ConstantBiome", biPlains);
- m_BiomeGen = new cBioGenConstant((EMCSBiome)Biome);
+ AString Biome = a_IniFile.GetValue("Generator", "ConstantBiome", "Plains");
+ EMCSBiome b = StringToBiome(Biome);
+ if (b == -1)
+ {
+ b = biPlains;
+ }
+ m_BiomeGen = new cBioGenConstant(b);
}
else if (NoCaseCompare(BiomeGenName, "checkerboard") == 0)
{