summaryrefslogtreecommitdiffstats
path: root/src/MobSpawner.cpp
diff options
context:
space:
mode:
authormathiascode <mail@mathias.is>2020-04-04 16:00:47 +0200
committermathiascode <mail@mathias.is>2020-04-04 16:00:47 +0200
commitb8165aebd488b6e4cbfbefb9bb899a811668c8ca (patch)
tree835857a8820062d3b5aa55878ba2a833afdaad07 /src/MobSpawner.cpp
parentImplement wither skeletons (#4563) (diff)
downloadcuberite-b8165aebd488b6e4cbfbefb9bb899a811668c8ca.tar
cuberite-b8165aebd488b6e4cbfbefb9bb899a811668c8ca.tar.gz
cuberite-b8165aebd488b6e4cbfbefb9bb899a811668c8ca.tar.bz2
cuberite-b8165aebd488b6e4cbfbefb9bb899a811668c8ca.tar.lz
cuberite-b8165aebd488b6e4cbfbefb9bb899a811668c8ca.tar.xz
cuberite-b8165aebd488b6e4cbfbefb9bb899a811668c8ca.tar.zst
cuberite-b8165aebd488b6e4cbfbefb9bb899a811668c8ca.zip
Diffstat (limited to '')
-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)
);