summaryrefslogtreecommitdiffstats
path: root/source/cChunkGenerator.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-05-31 22:34:58 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-05-31 22:34:58 +0200
commite8c905f0781957298528e233e43027001afa62c9 (patch)
tree0b98d75aea502bc009a59734ce8c53e92534ff6e /source/cChunkGenerator.cpp
parentcWorld::UnloadUnusedChunks() exported to Lua (diff)
downloadcuberite-e8c905f0781957298528e233e43027001afa62c9.tar
cuberite-e8c905f0781957298528e233e43027001afa62c9.tar.gz
cuberite-e8c905f0781957298528e233e43027001afa62c9.tar.bz2
cuberite-e8c905f0781957298528e233e43027001afa62c9.tar.lz
cuberite-e8c905f0781957298528e233e43027001afa62c9.tar.xz
cuberite-e8c905f0781957298528e233e43027001afa62c9.tar.zst
cuberite-e8c905f0781957298528e233e43027001afa62c9.zip
Diffstat (limited to '')
-rw-r--r--source/cChunkGenerator.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/cChunkGenerator.cpp b/source/cChunkGenerator.cpp
index e5514ca1f..16c6eae58 100644
--- a/source/cChunkGenerator.cpp
+++ b/source/cChunkGenerator.cpp
@@ -139,7 +139,9 @@ void cChunkGenerator::InitBiomeGen(cIniFile & a_IniFile)
{
LOGWARNING("Unknown BiomeGen \"%s\", using \"distortedvoronoi\" instead.", BiomeGenName.c_str());
}
- m_BiomeGen = new cBioGenDistortedVoronoi(m_Seed);
+ int CellSize = a_IniFile.GetValueI("Generator", "DistortedVoronoiCellSize", 96);
+ AString Biomes = a_IniFile.GetValue("Generator", "DistortedVoronoiBiomes", "");
+ m_BiomeGen = new cBioGenDistortedVoronoi(m_Seed, CellSize, Biomes);
}
}