summaryrefslogtreecommitdiffstats
path: root/src/Generating/FinishGen.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-01-10 22:22:54 +0100
committermadmaxoft <github@xoft.cz>2014-01-10 22:22:54 +0100
commitcea997426b7d66f5aa9f8aac5fd5b603bcaa3fb8 (patch)
treeb6795602eb6f64625b2734c6e3a302a5374e145d /src/Generating/FinishGen.cpp
parentFixed generator adding values to ini file. (diff)
downloadcuberite-cea997426b7d66f5aa9f8aac5fd5b603bcaa3fb8.tar
cuberite-cea997426b7d66f5aa9f8aac5fd5b603bcaa3fb8.tar.gz
cuberite-cea997426b7d66f5aa9f8aac5fd5b603bcaa3fb8.tar.bz2
cuberite-cea997426b7d66f5aa9f8aac5fd5b603bcaa3fb8.tar.lz
cuberite-cea997426b7d66f5aa9f8aac5fd5b603bcaa3fb8.tar.xz
cuberite-cea997426b7d66f5aa9f8aac5fd5b603bcaa3fb8.tar.zst
cuberite-cea997426b7d66f5aa9f8aac5fd5b603bcaa3fb8.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:
{