diff options
author | archshift <admin@archshift.com> | 2014-07-19 11:56:46 +0200 |
---|---|---|
committer | archshift <admin@archshift.com> | 2014-07-19 11:56:46 +0200 |
commit | 11f8198a8054e2b50df3fdbd8a59a876d7db87f0 (patch) | |
tree | 5695db8b566792296cf95fe70f39d46f1279622d /src/World.cpp | |
parent | Minecart: slimmed down SpawnOn by keeping subtype in the payload enum (diff) | |
download | cuberite-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/World.cpp')
-rw-r--r-- | src/World.cpp | 3 |
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); |