summaryrefslogtreecommitdiffstats
path: root/src/Generating/ComposableGenerator.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-11-25 15:06:32 +0100
committerMattes D <github@xoft.cz>2015-11-25 15:06:32 +0100
commit326f5e04f7c7a2e02a9c0a627d4b8e686091b250 (patch)
treee03a27694e4b589f5bf04d2a595393661fa36654 /src/Generating/ComposableGenerator.cpp
parentAdded OrePockets and DirtPockets finish gens. (diff)
downloadcuberite-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 'src/Generating/ComposableGenerator.cpp')
-rw-r--r--src/Generating/ComposableGenerator.cpp8
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);
}