diff options
author | Mattes D <github@xoft.cz> | 2015-11-25 15:06:32 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-11-25 15:06:32 +0100 |
commit | 326f5e04f7c7a2e02a9c0a627d4b8e686091b250 (patch) | |
tree | e03a27694e4b589f5bf04d2a595393661fa36654 /src/Generating/ComposableGenerator.cpp | |
parent | Added OrePockets and DirtPockets finish gens. (diff) | |
download | cuberite-326f5e04f7c7a2e02a9c0a627d4b8e686091b250.tar cuberite-326f5e04f7c7a2e02a9c0a627d4b8e686091b250.tar.gz cuberite-326f5e04f7c7a2e02a9c0a627d4b8e686091b250.tar.bz2 cuberite-326f5e04f7c7a2e02a9c0a627d4b8e686091b250.tar.lz cuberite-326f5e04f7c7a2e02a9c0a627d4b8e686091b250.tar.xz cuberite-326f5e04f7c7a2e02a9c0a627d4b8e686091b250.tar.zst cuberite-326f5e04f7c7a2e02a9c0a627d4b8e686091b250.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Generating/ComposableGenerator.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Generating/ComposableGenerator.cpp b/src/Generating/ComposableGenerator.cpp index 3e27280ce..fa8db8f93 100644 --- a/src/Generating/ComposableGenerator.cpp +++ b/src/Generating/ComposableGenerator.cpp @@ -332,7 +332,11 @@ void cComposableGenerator::InitFinishGens(cIniFile & a_IniFile) } else if (NoCaseCompare(*itr, "DirtPockets") == 0) { - m_FinishGens.push_back(std::make_shared<cFinishGenOrePockets>(Seed + 1, cFinishGenOrePockets::DefaultNaturalPatches())); + auto gen = std::make_shared<cFinishGenOrePockets>(Seed + 1, cFinishGenOrePockets::DefaultNaturalPatches()); + if (gen->Initialize(a_IniFile, "DirtPockets")) + { + m_FinishGens.push_back(gen); + } } else if (NoCaseCompare(*itr, "DistortedMembraneOverhangs") == 0) { @@ -425,7 +429,7 @@ void cComposableGenerator::InitFinishGens(cIniFile & a_IniFile) else if (NoCaseCompare(*itr, "OrePockets") == 0) { auto gen = std::make_shared<cFinishGenOrePockets>(Seed + 2, cFinishGenOrePockets::DefaultOverworldOres()); - if (gen->Initialize(a_IniFile)) + if (gen->Initialize(a_IniFile, "OrePockets")) { m_FinishGens.push_back(gen); } |