summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLukas Pioch <lukas@zgow.de>2015-10-27 18:41:21 +0100
committerLukas Pioch <lukas@zgow.de>2015-10-29 13:35:35 +0100
commit3e48b1f1ebb721a39d2ab65eb67bf1a8b6c7671d (patch)
treeed028be3ec6447d62f7c247d0964a63fb5fa1e14 /src
parentMerge pull request #2578 from cuberite/revert-2574-pressure-plate-fix (diff)
downloadcuberite-3e48b1f1ebb721a39d2ab65eb67bf1a8b6c7671d.tar
cuberite-3e48b1f1ebb721a39d2ab65eb67bf1a8b6c7671d.tar.gz
cuberite-3e48b1f1ebb721a39d2ab65eb67bf1a8b6c7671d.tar.bz2
cuberite-3e48b1f1ebb721a39d2ab65eb67bf1a8b6c7671d.tar.lz
cuberite-3e48b1f1ebb721a39d2ab65eb67bf1a8b6c7671d.tar.xz
cuberite-3e48b1f1ebb721a39d2ab65eb67bf1a8b6c7671d.tar.zst
cuberite-3e48b1f1ebb721a39d2ab65eb67bf1a8b6c7671d.zip
Diffstat (limited to 'src')
-rw-r--r--src/MobSpawner.cpp11
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: