summaryrefslogtreecommitdiffstats
path: root/src/Generating/ComposableGenerator.cpp
diff options
context:
space:
mode:
authorCocosushi6 <sacha.tournes.savry@gmail.com>2018-05-03 20:25:08 +0200
committerpeterbell10 <peterbell10@live.co.uk>2018-05-03 20:25:08 +0200
commitfbf5cf7aa61a48f916afd81ac7e282eac8d50e6f (patch)
treec6c978961d016f5e5167cda73fd22212a3f8df85 /src/Generating/ComposableGenerator.cpp
parentPrefer static_cast to reinterpret_cast (#4223) (diff)
downloadcuberite-fbf5cf7aa61a48f916afd81ac7e282eac8d50e6f.tar
cuberite-fbf5cf7aa61a48f916afd81ac7e282eac8d50e6f.tar.gz
cuberite-fbf5cf7aa61a48f916afd81ac7e282eac8d50e6f.tar.bz2
cuberite-fbf5cf7aa61a48f916afd81ac7e282eac8d50e6f.tar.lz
cuberite-fbf5cf7aa61a48f916afd81ac7e282eac8d50e6f.tar.xz
cuberite-fbf5cf7aa61a48f916afd81ac7e282eac8d50e6f.tar.zst
cuberite-fbf5cf7aa61a48f916afd81ac7e282eac8d50e6f.zip
Diffstat (limited to '')
-rw-r--r--src/Generating/ComposableGenerator.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Generating/ComposableGenerator.cpp b/src/Generating/ComposableGenerator.cpp
index e964bca46..c73ecf6cc 100644
--- a/src/Generating/ComposableGenerator.cpp
+++ b/src/Generating/ComposableGenerator.cpp
@@ -525,7 +525,9 @@ void cComposableGenerator::InitFinishGens(cIniFile & a_IniFile)
}
else if (NoCaseCompare(finisher, "SprinkleFoliage") == 0)
{
- m_FinishGens.push_back(cFinishGenPtr(new cFinishGenSprinkleFoliage(Seed)));
+ int MaxCactusHeight = a_IniFile.GetValueI("Plants", "MaxCactusHeight", 3);
+ int MaxSugarcaneHeight = a_IniFile.GetValueI("Plants", "MaxSugarcaneHeight", 3);
+ m_FinishGens.push_back(std::make_shared<cFinishGenSprinkleFoliage>(Seed, MaxCactusHeight, MaxSugarcaneHeight));
}
else if (NoCaseCompare(finisher, "TallGrass") == 0)
{