diff options
author | Samuel Barney <samjbarney@gmail.com> | 2013-10-26 11:51:56 +0200 |
---|---|---|
committer | Samuel Barney <samjbarney@gmail.com> | 2013-10-26 11:51:56 +0200 |
commit | 6c30ce93dae4c14dc84385578e0857d46e7484f4 (patch) | |
tree | 6a1f97565bd17f92cc72e36322bead901cd2b117 /source/MobSpawner.cpp | |
parent | Moving spawning position to the center of the block. (diff) | |
download | cuberite-6c30ce93dae4c14dc84385578e0857d46e7484f4.tar cuberite-6c30ce93dae4c14dc84385578e0857d46e7484f4.tar.gz cuberite-6c30ce93dae4c14dc84385578e0857d46e7484f4.tar.bz2 cuberite-6c30ce93dae4c14dc84385578e0857d46e7484f4.tar.lz cuberite-6c30ce93dae4c14dc84385578e0857d46e7484f4.tar.xz cuberite-6c30ce93dae4c14dc84385578e0857d46e7484f4.tar.zst cuberite-6c30ce93dae4c14dc84385578e0857d46e7484f4.zip |
Diffstat (limited to '')
-rw-r--r-- | source/MobSpawner.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/MobSpawner.cpp b/source/MobSpawner.cpp index 5bb021197..35eee4acc 100644 --- a/source/MobSpawner.cpp +++ b/source/MobSpawner.cpp @@ -149,9 +149,10 @@ bool cMobSpawner::CanSpawnHere(cMonster::eType a_MobType, BLOCKTYPE a_BlockType, ((a_BlockType_below == E_BLOCK_GRASS) || (a_BlockType_below == E_BLOCK_LEAVES)) && (a_Level >= 62) && (m_Random.NextInt(3,a_Biome) != 0); case cMonster::mtEnderman: + case cMonster::mtSpider: + return false; case cMonster::mtCreeper: case cMonster::mtZombie: - case cMonster::mtSpider: return (a_BlockType == E_BLOCK_AIR) && (a_BlockType_above == E_BLOCK_AIR) && (!g_BlockTransparent[a_BlockType_below]) && (a_Skylight <= 7) && (a_Blocklight <= 7) && (m_Random.NextInt(2,a_Biome) == 0); |