summaryrefslogtreecommitdiffstats
path: root/source/cChunkGenerator.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-05-27 12:51:04 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-05-27 12:51:04 +0200
commitba2f0c6229870fd7c1d0b0f530dd1567d43e4e03 (patch)
treefc807d61b7656133a59a1113cbbda65d4bfed53f /source/cChunkGenerator.cpp
parentImproved logging on mis-configuration in cPlayer and cWorldStorage (diff)
downloadcuberite-ba2f0c6229870fd7c1d0b0f530dd1567d43e4e03.tar
cuberite-ba2f0c6229870fd7c1d0b0f530dd1567d43e4e03.tar.gz
cuberite-ba2f0c6229870fd7c1d0b0f530dd1567d43e4e03.tar.bz2
cuberite-ba2f0c6229870fd7c1d0b0f530dd1567d43e4e03.tar.lz
cuberite-ba2f0c6229870fd7c1d0b0f530dd1567d43e4e03.tar.xz
cuberite-ba2f0c6229870fd7c1d0b0f530dd1567d43e4e03.tar.zst
cuberite-ba2f0c6229870fd7c1d0b0f530dd1567d43e4e03.zip
Diffstat (limited to '')
-rw-r--r--source/cChunkGenerator.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/cChunkGenerator.cpp b/source/cChunkGenerator.cpp
index 321246298..e8565f6ac 100644
--- a/source/cChunkGenerator.cpp
+++ b/source/cChunkGenerator.cpp
@@ -119,7 +119,8 @@ void cChunkGenerator::InitBiomeGen(cIniFile & a_IniFile)
else if (NoCaseCompare(BiomeGenName, "checkerboard") == 0)
{
int BiomeSize = a_IniFile.GetValueI("Generator", "CheckerboardBiomeSize", 64);
- m_BiomeGen = new cBioGenCheckerboard(BiomeSize);
+ AString Biomes = a_IniFile.GetValue("Generator", "CheckerBoardBiomes", "");
+ m_BiomeGen = new cBioGenCheckerboard(BiomeSize, Biomes);
}
else
{
@@ -218,7 +219,7 @@ void cChunkGenerator::InitCompositionGen(cIniFile & a_IniFile)
void cChunkGenerator::InitStructureGens(cIniFile & a_IniFile)
{
- AString Structures = a_IniFile.GetValue("Generator", "Structures", "Trees,MarbleCaves");
+ AString Structures = a_IniFile.GetValue("Generator", "Structures", "Trees,MarbleCaves,OreNests");
AStringVector Str = StringSplit(Structures, ",");
for (AStringVector::const_iterator itr = Str.begin(); itr != Str.end(); ++itr)