diff options
author | Cocosushi6 <sacha.tournes.savry@gmail.com> | 2018-05-03 20:25:08 +0200 |
---|---|---|
committer | peterbell10 <peterbell10@live.co.uk> | 2018-05-03 20:25:08 +0200 |
commit | fbf5cf7aa61a48f916afd81ac7e282eac8d50e6f (patch) | |
tree | c6c978961d016f5e5167cda73fd22212a3f8df85 /src/Generating/ComposableGenerator.cpp | |
parent | Prefer static_cast to reinterpret_cast (#4223) (diff) | |
download | cuberite-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.cpp | 4 |
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) { |