1
0

Cows and rabbits no longer spawn over water.

Fixes #2080
This commit is contained in:
Alexander Harkness 2015-05-23 10:31:23 +01:00
parent e0fd3ce95b
commit abf6ac3148

View File

@ -1259,7 +1259,7 @@ bool cFinishGenPassiveMobs::TrySpawnAnimals(cChunkDesc & a_ChunkDesc, int a_RelX
} }
if ( if (
(BlockUnderFeet != E_BLOCK_GRASS) && (BlockUnderFeet != E_BLOCK_GRASS) &&
((AnimalToSpawn == mtSheep) || (AnimalToSpawn == mtChicken) || (AnimalToSpawn == mtPig)) ((AnimalToSpawn == mtRabbit) || (AnimalToSpawn == mtCow) || (AnimalToSpawn == mtSheep) || (AnimalToSpawn == mtChicken) || (AnimalToSpawn == mtPig))
) )
{ {
return false; return false;