summaryrefslogtreecommitdiffstats
path: root/src/Generating/ComposableGenerator.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-06-20 15:37:41 +0200
committerMattes D <github@xoft.cz>2015-06-20 15:37:41 +0200
commite06dd8f20ec3e6817e5638d5101cb8dc776846b4 (patch)
tree7400062806953c5fc1d8abd3ab9eaa74800d4872 /src/Generating/ComposableGenerator.cpp
parentMerge pull request #2255 from cuberite/LoadablePieces (diff)
downloadcuberite-e06dd8f20ec3e6817e5638d5101cb8dc776846b4.tar
cuberite-e06dd8f20ec3e6817e5638d5101cb8dc776846b4.tar.gz
cuberite-e06dd8f20ec3e6817e5638d5101cb8dc776846b4.tar.bz2
cuberite-e06dd8f20ec3e6817e5638d5101cb8dc776846b4.tar.lz
cuberite-e06dd8f20ec3e6817e5638d5101cb8dc776846b4.tar.xz
cuberite-e06dd8f20ec3e6817e5638d5101cb8dc776846b4.tar.zst
cuberite-e06dd8f20ec3e6817e5638d5101cb8dc776846b4.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 f9a4d7609..2c74340be 100644
--- a/src/Generating/ComposableGenerator.cpp
+++ b/src/Generating/ComposableGenerator.cpp
@@ -618,7 +618,9 @@ void cComposableGenerator::InitFinishGens(cIniFile & a_IniFile)
int MaxSize = a_IniFile.GetValueSetI("Generator", "VillageMaxSize", 128);
int MinDensity = a_IniFile.GetValueSetI("Generator", "VillageMinDensity", 50);
int MaxDensity = a_IniFile.GetValueSetI("Generator", "VillageMaxDensity", 80);
- m_FinishGens.push_back(std::make_shared<cVillageGen>(Seed, GridSize, MaxOffset, MaxDepth, MaxSize, MinDensity, MaxDensity, m_BiomeGen, m_CompositedHeightCache));
+ AString PrefabList = a_IniFile.GetValueSet("Generator", "VillagePrefabs", "PlainsVillage, SandVillage");
+ auto Prefabs = StringSplitAndTrim(PrefabList, ",");
+ m_FinishGens.push_back(std::make_shared<cVillageGen>(Seed, GridSize, MaxOffset, MaxDepth, MaxSize, MinDensity, MaxDensity, m_BiomeGen, m_CompositedHeightCache, Prefabs));
}
else if (NoCaseCompare(*itr, "Vines") == 0)
{