summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-07-19 11:56:46 +0200
committerarchshift <admin@archshift.com>2014-07-19 11:56:46 +0200
commit11f8198a8054e2b50df3fdbd8a59a876d7db87f0 (patch)
tree5695db8b566792296cf95fe70f39d46f1279622d /src
parentMinecart: slimmed down SpawnOn by keeping subtype in the payload enum (diff)
downloadcuberite-11f8198a8054e2b50df3fdbd8a59a876d7db87f0.tar
cuberite-11f8198a8054e2b50df3fdbd8a59a876d7db87f0.tar.gz
cuberite-11f8198a8054e2b50df3fdbd8a59a876d7db87f0.tar.bz2
cuberite-11f8198a8054e2b50df3fdbd8a59a876d7db87f0.tar.lz
cuberite-11f8198a8054e2b50df3fdbd8a59a876d7db87f0.tar.xz
cuberite-11f8198a8054e2b50df3fdbd8a59a876d7db87f0.tar.zst
cuberite-11f8198a8054e2b50df3fdbd8a59a876d7db87f0.zip
Diffstat (limited to 'src')
-rw-r--r--src/World.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/World.cpp b/src/World.cpp
index 186842b20..c27fd462b 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -570,12 +570,13 @@ void cWorld::Start(void)
m_TNTShrapnelLevel = (eShrapnelLevel)Clamp(TNTShrapnelLevel, (int)slNone, (int)slAll);
// Load allowed mobs:
- const char * DefaultMonsters = "";
+ AString DefaultMonsters;
switch (m_Dimension)
{
case dimOverworld: DefaultMonsters = "bat, cavespider, chicken, cow, creeper, enderman, horse, mooshroom, ocelot, pig, sheep, silverfish, skeleton, slime, spider, squid, wolf, zombie"; break;
case dimNether: DefaultMonsters = "blaze, ghast, magmacube, skeleton, zombie, zombiepigman"; break;
case dimEnd: DefaultMonsters = "enderman"; break;
+ case dimNotSet: break;
}
m_bAnimals = IniFile.GetValueSetB("Monsters", "AnimalsOn", true);
AString AllMonsters = IniFile.GetValueSet("Monsters", "Types", DefaultMonsters);