diff options
Diffstat (limited to 'src/MobSpawner.cpp')
-rw-r--r-- | src/MobSpawner.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/MobSpawner.cpp b/src/MobSpawner.cpp index 27dc5a877..7deb9764e 100644 --- a/src/MobSpawner.cpp +++ b/src/MobSpawner.cpp @@ -236,6 +236,17 @@ bool cMobSpawner::CanSpawnHere(cChunk * a_Chunk, int a_RelX, int a_RelY, int a_R } return CanSpawn && HasFloor && (SkyLight <= 7) && (BlockLight <= 7); } + + case mtCaveSpider: + { + return ( + (TargetBlock == E_BLOCK_AIR) && + (!cBlockInfo::IsTransparent(BlockBelow)) && + (SkyLight <= 7) && + (BlockLight <= 7) && + (Random.NextInt(2) == 0) + ); + } case mtCreeper: case mtSkeleton: |