diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-07-27 23:00:11 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-07-27 23:00:11 +0200 |
commit | 5b69087b729d91be330662d902a3e351d51789f2 (patch) | |
tree | 5fd66699debb3de0b9ce76e04ac06ce98d6a8d8c /source/cChunkGenerator.cpp | |
parent | Basic WormNestCaves are working (diff) | |
download | cuberite-5b69087b729d91be330662d902a3e351d51789f2.tar cuberite-5b69087b729d91be330662d902a3e351d51789f2.tar.gz cuberite-5b69087b729d91be330662d902a3e351d51789f2.tar.bz2 cuberite-5b69087b729d91be330662d902a3e351d51789f2.tar.lz cuberite-5b69087b729d91be330662d902a3e351d51789f2.tar.xz cuberite-5b69087b729d91be330662d902a3e351d51789f2.tar.zst cuberite-5b69087b729d91be330662d902a3e351d51789f2.zip |
Diffstat (limited to 'source/cChunkGenerator.cpp')
-rw-r--r-- | source/cChunkGenerator.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/source/cChunkGenerator.cpp b/source/cChunkGenerator.cpp index c6b6fc26a..96e41508c 100644 --- a/source/cChunkGenerator.cpp +++ b/source/cChunkGenerator.cpp @@ -253,13 +253,7 @@ void cChunkGenerator::InitCompositionGen(cIniFile & a_IniFile) } if (NoCaseCompare(CompoGenName, "sameblock") == 0) { - AString BlockType = a_IniFile.GetValueSet("Generator", "SameBlockType", ""); - if (BlockType.empty()) - { - LOGWARN("[Generator]::SameBlockType value not found in world.ini, using \"stone\"."); - BlockType = "stone"; - } - int Block = GetIniBlock(a_IniFile, "[Generator]", "SameBlockType", "stone"); + int Block = GetIniBlock(a_IniFile, "Generator", "SameBlockType", "stone"); bool Bedrocked = (a_IniFile.GetValueSetI("Generator", "SameBlockBedrocked", 1) != 0); m_CompositionGen = new cCompoGenSameBlock((BLOCKTYPE)Block, Bedrocked); } @@ -346,7 +340,7 @@ void cChunkGenerator::InitStructureGens(cIniFile & a_IniFile) void cChunkGenerator::InitFinishGens(cIniFile & a_IniFile) { - AString Structures = a_IniFile.GetValueSet("Generator", "Finishers", "SprinkleFoliage,Ice,Snow,Lilypads"); + AString Structures = a_IniFile.GetValueSet("Generator", "Finishers", "SprinkleFoliage,Ice,Snow,Lilypads,BottomLava"); AStringVector Str = StringSplit(Structures, ","); for (AStringVector::const_iterator itr = Str.begin(); itr != Str.end(); ++itr) @@ -367,6 +361,11 @@ void cChunkGenerator::InitFinishGens(cIniFile & a_IniFile) { m_FinishGens.push_back(new cFinishGenLilypads(m_Seed)); } + else if (NoCaseCompare(*itr, "BottomLava") == 0) + { + int BottomLavaLevel = a_IniFile.GetValueSetI("Generator", "BottomLavaLevel", 10); + m_FinishGens.push_back(new cFinishGenBottomLava(BottomLavaLevel)); + } } // for itr - Str[] } |