summaryrefslogtreecommitdiffstats
path: root/source/MobSpawner.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-11-04 22:51:24 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-11-04 22:51:24 +0100
commite832736e0bf315585f873b43520d1d771930a1c2 (patch)
treed9fce26b198075371b04356b6f66f31da51f4493 /source/MobSpawner.cpp
parentProtocol 1.7: Added more client-bound packets. (diff)
downloadcuberite-e832736e0bf315585f873b43520d1d771930a1c2.tar
cuberite-e832736e0bf315585f873b43520d1d771930a1c2.tar.gz
cuberite-e832736e0bf315585f873b43520d1d771930a1c2.tar.bz2
cuberite-e832736e0bf315585f873b43520d1d771930a1c2.tar.lz
cuberite-e832736e0bf315585f873b43520d1d771930a1c2.tar.xz
cuberite-e832736e0bf315585f873b43520d1d771930a1c2.tar.zst
cuberite-e832736e0bf315585f873b43520d1d771930a1c2.zip
Diffstat (limited to 'source/MobSpawner.cpp')
-rw-r--r--source/MobSpawner.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/MobSpawner.cpp b/source/MobSpawner.cpp
index d4926bbe5..dd9419ba4 100644
--- a/source/MobSpawner.cpp
+++ b/source/MobSpawner.cpp
@@ -71,10 +71,10 @@ cMonster::eType cMobSpawner::ChooseMobType(EMCSBiome a_Biome)
addIfAllowed(cMonster::mtZombiePigman, allowedMobs);
addIfAllowed(cMonster::mtMagmaCube, allowedMobs);
}
- /*else if (a_Biome == biEnder) MG TODO : figure out what are the biomes of the ender
+ else if (a_Biome == biEnd)
{
addIfAllowed(cMonster::mtEnderman, allowedMobs);
- }*/
+ }
else
{
addIfAllowed(cMonster::mtBat, allowedMobs);
@@ -210,7 +210,7 @@ bool cMobSpawner::CanSpawnHere(cChunk * a_Chunk, int a_RelX, int a_RelY, int a_R
return (TargetBlock == E_BLOCK_AIR) && (BlockAbove == E_BLOCK_AIR) && (!g_BlockTransparent[BlockBelow]) &&
(m_Random.NextInt(20,a_Biome) == 0);
default:
- LOGD("MG TODO : check I've got a Rule to write for type %d",a_MobType);
+ LOGD("MG TODO: Write spawning rule for mob type %d", a_MobType);
return false;
}
}