summaryrefslogtreecommitdiffstats
path: root/src/Generating/FinishGen.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-01-11 20:26:09 +0100
committerMattes D <github@xoft.cz>2014-01-11 20:26:09 +0100
commit5417f7bd2dc4a98ca4cd06070fd08d9ce41c8a9c (patch)
tree3ebc08f938e5a16c3dd6342f638f6384bc203fe6 /src/Generating/FinishGen.cpp
parentMerge pull request #531 from xdot/master (diff)
parentDecoupled cChunkGenerator from cWorld and cRoot. (diff)
downloadcuberite-5417f7bd2dc4a98ca4cd06070fd08d9ce41c8a9c.tar
cuberite-5417f7bd2dc4a98ca4cd06070fd08d9ce41c8a9c.tar.gz
cuberite-5417f7bd2dc4a98ca4cd06070fd08d9ce41c8a9c.tar.bz2
cuberite-5417f7bd2dc4a98ca4cd06070fd08d9ce41c8a9c.tar.lz
cuberite-5417f7bd2dc4a98ca4cd06070fd08d9ce41c8a9c.tar.xz
cuberite-5417f7bd2dc4a98ca4cd06070fd08d9ce41c8a9c.tar.zst
cuberite-5417f7bd2dc4a98ca4cd06070fd08d9ce41c8a9c.zip
Diffstat (limited to 'src/Generating/FinishGen.cpp')
-rw-r--r--src/Generating/FinishGen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Generating/FinishGen.cpp b/src/Generating/FinishGen.cpp
index 145fe22e0..4915e6818 100644
--- a/src/Generating/FinishGen.cpp
+++ b/src/Generating/FinishGen.cpp
@@ -520,7 +520,7 @@ void cFinishGenPreSimulator::StationarizeFluid(
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// cFinishGenFluidSprings:
-cFinishGenFluidSprings::cFinishGenFluidSprings(int a_Seed, BLOCKTYPE a_Fluid, cIniFile & a_IniFile, const cWorld & a_World) :
+cFinishGenFluidSprings::cFinishGenFluidSprings(int a_Seed, BLOCKTYPE a_Fluid, cIniFile & a_IniFile, eDimension a_Dimension) :
m_Noise(a_Seed + a_Fluid * 100), // Need to take fluid into account, otherwise water and lava springs generate next to each other
m_HeightDistribution(255),
m_Fluid(a_Fluid)
@@ -529,7 +529,7 @@ cFinishGenFluidSprings::cFinishGenFluidSprings(int a_Seed, BLOCKTYPE a_Fluid, cI
AString SectionName = IsWater ? "WaterSprings" : "LavaSprings";
AString DefaultHeightDistribution;
int DefaultChance = 0;
- switch (a_World.GetDimension())
+ switch (a_Dimension)
{
case dimNether:
{