summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/World.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/World.cpp b/source/World.cpp
index 67b2738f0..2b8fe54c6 100644
--- a/source/World.cpp
+++ b/source/World.cpp
@@ -2632,6 +2632,8 @@ int cWorld::SpawnMob(double a_PosX, double a_PosY, double a_PosZ, cMonster::eTyp
return -1;
}
}
+ while(this->GetBlock(a_PosX, a_PosY - 1, a_PosZ) == E_BLOCK_AIR)
+ --a_PosY;
Monster->SetPosition(a_PosX, a_PosY, a_PosZ);
Monster->SetHealth(Monster->GetMaxHealth());
if (cPluginManager::Get()->CallHookSpawningMonster(*this, *Monster))