added spawning rule to mooshroom

master
p-mcgowan 2014-12-01 22:11:28 -08:00
parent 53a55e62b3
commit ae47c00547
1 changed files with 13 additions and 0 deletions

View File

@ -285,6 +285,19 @@ bool cMobSpawner::CanSpawnHere(cChunk * a_Chunk, int a_RelX, int a_RelY, int a_R
)
);
}
case mtMooshroom:
{
return (
(TargetBlock == E_BLOCK_AIR) &&
(BlockAbove == E_BLOCK_AIR) &&
(!cBlockInfo::IsTransparent(BlockBelow)) &&
(
a_Biome == biMushroomShore ||
a_Biome == biMushroomIsland
)
);
}
default:
{