diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-01-20 18:21:47 +0100 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-01-20 18:21:47 +0100 |
commit | 16375f6aad355333d1d3aff6140cdb4439a9b62f (patch) | |
tree | eb4192092b928e90aebaf914288d12c9cafaf5a5 /src/Generating/ComposableGenerator.cpp | |
parent | Added Inifile and OSSupport Linking (diff) | |
parent | APIDump: Added notes about objects across cWorld's task execution. (diff) | |
download | cuberite-16375f6aad355333d1d3aff6140cdb4439a9b62f.tar cuberite-16375f6aad355333d1d3aff6140cdb4439a9b62f.tar.gz cuberite-16375f6aad355333d1d3aff6140cdb4439a9b62f.tar.bz2 cuberite-16375f6aad355333d1d3aff6140cdb4439a9b62f.tar.lz cuberite-16375f6aad355333d1d3aff6140cdb4439a9b62f.tar.xz cuberite-16375f6aad355333d1d3aff6140cdb4439a9b62f.tar.zst cuberite-16375f6aad355333d1d3aff6140cdb4439a9b62f.zip |
Diffstat (limited to 'src/Generating/ComposableGenerator.cpp')
-rw-r--r-- | src/Generating/ComposableGenerator.cpp | 10 |
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); |