diff options
author | Lukas Pioch <lukas@zgow.de> | 2015-10-27 18:41:21 +0100 |
---|---|---|
committer | Lukas Pioch <lukas@zgow.de> | 2015-10-29 13:35:35 +0100 |
commit | 3e48b1f1ebb721a39d2ab65eb67bf1a8b6c7671d (patch) | |
tree | ed028be3ec6447d62f7c247d0964a63fb5fa1e14 /src/MobSpawner.cpp | |
parent | Merge pull request #2578 from cuberite/revert-2574-pressure-plate-fix (diff) | |
download | cuberite-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 '')
-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: |