From 669392d44a0f74e83b2702fa64d4f8bfb2ec643c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Havl=C3=AD=C4=8Dek?= <80639037+havel06@users.noreply.github.com> Date: Sat, 8 Apr 2023 00:11:10 +0200 Subject: Implement slime chunks. (#5484) * Implement slime chunks. * add cWorld::IsSlimeChunk * add documentation for cWorld::IsSlimeChunk --- src/MobSpawner.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/MobSpawner.cpp') 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) && -- cgit v1.2.3