summaryrefslogtreecommitdiffstats
path: root/src/MobSpawner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/MobSpawner.cpp')
-rw-r--r--src/MobSpawner.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/MobSpawner.cpp b/src/MobSpawner.cpp
index 4d18b7358..76b76839e 100644
--- a/src/MobSpawner.cpp
+++ b/src/MobSpawner.cpp
@@ -152,8 +152,8 @@ bool cMobSpawner::CanSpawnHere(cChunk * a_Chunk, Vector3i a_RelPos, eMonsterType
case mtSheep:
{
return (
- (targetBlock == E_BLOCK_AIR) &&
- (blockAbove == E_BLOCK_AIR) &&
+ (!cBlockInfo::IsTransparent(targetBlock)) &&
+ (!cBlockInfo::IsTransparent(blockAbove)) &&
(blockBelow == E_BLOCK_GRASS) &&
(skyLight >= 9)
);