diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-05-27 12:57:36 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-05-27 12:57:36 +0200 |
commit | 925f45a4fa3a3f42071639ebb6da20c6110af712 (patch) | |
tree | 292815b7fed9afd3c01e205694c83ecc2cca3787 | |
parent | Added the CheckerBoardBiomes parameter for setting biomes that CheckerBoard generates (#179). Added string-to-biome conversion (#183). Added OreNests to default Structures configuration. (diff) | |
download | cuberite-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 |
Diffstat (limited to '')
-rw-r--r-- | source/cChunkGenerator.cpp | 9 |
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)
{
|