diff options
author | Michal Havlíček <80639037+havel06@users.noreply.github.com> | 2023-04-08 00:11:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-08 00:11:10 +0200 |
commit | 669392d44a0f74e83b2702fa64d4f8bfb2ec643c (patch) | |
tree | 2c80eca6e9504c6475b00e5fd72b18d308d06e0f /src/MobSpawner.cpp | |
parent | refactor: removed m_MojangAPI from RankManager (#5483) (diff) | |
download | cuberite-669392d44a0f74e83b2702fa64d4f8bfb2ec643c.tar cuberite-669392d44a0f74e83b2702fa64d4f8bfb2ec643c.tar.gz cuberite-669392d44a0f74e83b2702fa64d4f8bfb2ec643c.tar.bz2 cuberite-669392d44a0f74e83b2702fa64d4f8bfb2ec643c.tar.lz cuberite-669392d44a0f74e83b2702fa64d4f8bfb2ec643c.tar.xz cuberite-669392d44a0f74e83b2702fa64d4f8bfb2ec643c.tar.zst cuberite-669392d44a0f74e83b2702fa64d4f8bfb2ec643c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/MobSpawner.cpp | 5 |
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) && |