1
0

Merge pull request #2567 from cuberite/cave_spider

Added cave spider to MobSpawner
This commit is contained in:
Lukas Pioch 2015-10-29 14:28:19 +01:00
commit 0ab0a2f146

View File

@ -237,6 +237,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:
case mtZombie: