summaryrefslogtreecommitdiffstats
path: root/src/Generating/FinishGen.cpp
diff options
context:
space:
mode:
authorp-mcgowan <mickeymcgowan@shaw.ca>2014-12-05 02:01:34 +0100
committerp-mcgowan <mickeymcgowan@shaw.ca>2014-12-05 02:01:34 +0100
commit78f0aebaf4bdef13d2cc61880111365297723517 (patch)
tree0dac80c3243436a3844c4fb4f3a94f319e3b42da /src/Generating/FinishGen.cpp
parenthandle non-vanilla dimensions (diff)
downloadcuberite-78f0aebaf4bdef13d2cc61880111365297723517.tar
cuberite-78f0aebaf4bdef13d2cc61880111365297723517.tar.gz
cuberite-78f0aebaf4bdef13d2cc61880111365297723517.tar.bz2
cuberite-78f0aebaf4bdef13d2cc61880111365297723517.tar.lz
cuberite-78f0aebaf4bdef13d2cc61880111365297723517.tar.xz
cuberite-78f0aebaf4bdef13d2cc61880111365297723517.tar.zst
cuberite-78f0aebaf4bdef13d2cc61880111365297723517.zip
Diffstat (limited to '')
-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 c83dfec67..a34f61fcf 100644
--- a/src/Generating/FinishGen.cpp
+++ b/src/Generating/FinishGen.cpp
@@ -835,7 +835,6 @@ cFinishGenFluidSprings::cFinishGenFluidSprings(int a_Seed, BLOCKTYPE a_Fluid, cI
default:
{
ASSERT(!"Unhandled world dimension");
- DefaultChance = 0;
break;
}
} // switch (dimension)
@@ -971,7 +970,8 @@ cFinishGenPassiveMobs::cFinishGenPassiveMobs(int a_Seed, cIniFile & a_IniFile, e
default:
{
ASSERT(!"Unhandled world dimension");
- return;
+ DefaultChance = 0;
+ break;
}
} // switch (dimension)
m_AnimalProbability = a_IniFile.GetValueSetI(SectionName, "AnimalSpawnChunkPercentage", DefaultAnimalSpawnChunkPercentage);