summaryrefslogtreecommitdiffstats
path: root/src/Generating/ComposableGenerator.cpp
diff options
context:
space:
mode:
authorandrew <xdotftw@gmail.com>2014-01-18 19:38:02 +0100
committerandrew <xdotftw@gmail.com>2014-01-18 19:38:02 +0100
commit992053b32ae106c8ee78fbdfcd4e9c7b44ab876a (patch)
treeada2032ec55148fe1ac4713c325ed85214ce756a /src/Generating/ComposableGenerator.cpp
parentParse the MC|AdvCdm plugin message (diff)
parentAlpha-sorted the finishers. (diff)
downloadcuberite-992053b32ae106c8ee78fbdfcd4e9c7b44ab876a.tar
cuberite-992053b32ae106c8ee78fbdfcd4e9c7b44ab876a.tar.gz
cuberite-992053b32ae106c8ee78fbdfcd4e9c7b44ab876a.tar.bz2
cuberite-992053b32ae106c8ee78fbdfcd4e9c7b44ab876a.tar.lz
cuberite-992053b32ae106c8ee78fbdfcd4e9c7b44ab876a.tar.xz
cuberite-992053b32ae106c8ee78fbdfcd4e9c7b44ab876a.tar.zst
cuberite-992053b32ae106c8ee78fbdfcd4e9c7b44ab876a.zip
Diffstat (limited to '')
-rw-r--r--src/Generating/ComposableGenerator.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Generating/ComposableGenerator.cpp b/src/Generating/ComposableGenerator.cpp
index 87c4d2c52..cfa7e9c6f 100644
--- a/src/Generating/ComposableGenerator.cpp
+++ b/src/Generating/ComposableGenerator.cpp
@@ -367,10 +367,10 @@ void cComposableGenerator::InitStructureGens(cIniFile & a_IniFile)
void cComposableGenerator::InitFinishGens(cIniFile & a_IniFile)
{
int Seed = m_ChunkGenerator.GetSeed();
- AString Structures = a_IniFile.GetValueSet("Generator", "Finishers", "SprinkleFoliage,Ice,Snow,Lilypads,BottomLava,DeadBushes,PreSimulator");
-
eDimension Dimension = StringToDimension(a_IniFile.GetValue("General", "Dimension", "Overworld"));
- AStringVector Str = StringSplitAndTrim(Structures, ",");
+
+ AString Finishers = a_IniFile.GetValueSet("Generator", "Finishers", "SprinkleFoliage,Ice,Snow,Lilypads,BottomLava,DeadBushes,PreSimulator");
+ AStringVector Str = StringSplitAndTrim(Finishers, ",");
for (AStringVector::const_iterator itr = Str.begin(); itr != Str.end(); ++itr)
{
// Finishers, alpha-sorted:
@@ -396,6 +396,10 @@ void cComposableGenerator::InitFinishGens(cIniFile & a_IniFile)
{
m_FinishGens.push_back(new cFinishGenSingleBiomeSingleTopBlock(Seed, E_BLOCK_LILY_PAD, biSwampland, 4, E_BLOCK_WATER, E_BLOCK_STATIONARY_WATER));
}
+ else if (NoCaseCompare(*itr, "NetherClumpFoliage") == 0)
+ {
+ m_FinishGens.push_back(new cFinishGenNetherClumpFoliage(Seed));
+ }
else if (NoCaseCompare(*itr, "PreSimulator") == 0)
{
m_FinishGens.push_back(new cFinishGenPreSimulator);