summaryrefslogtreecommitdiffstats
path: root/src/MobSpawner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/MobSpawner.cpp')
-rw-r--r--src/MobSpawner.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/MobSpawner.cpp b/src/MobSpawner.cpp
index 3fcb20f99..d5ed79fc4 100644
--- a/src/MobSpawner.cpp
+++ b/src/MobSpawner.cpp
@@ -220,7 +220,10 @@ bool cMobSpawner::CanSpawnHere(cChunk * a_Chunk, Vector3i a_RelPos, eMonsterType
(!cBlockInfo::IsTransparent(BlockBelow)) ||
(a_DisableSolidBelowCheck)) &&
(
- (a_RelPos.y <= 40) ||
+ (
+ (a_RelPos.y <= 40) &&
+ a_Chunk->IsSlimeChunk()
+ ) ||
(
(a_Biome == biSwampland) &&
(a_RelPos.y >= 50) &&