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 ef56e7fe9..8a482f0ad 100644
--- a/source/World.cpp
+++ b/source/World.cpp
@@ -2649,6 +2649,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))