summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Barney <samjbarney@gmail.com>2013-10-14 16:12:23 +0200
committerSamuel Barney <samjbarney@gmail.com>2013-10-14 16:12:23 +0200
commit369b4abff8ac9836536feff26e7e62bacec8bd97 (patch)
tree7abe9ebb1fefb440811fa0c67920da074a9a07fc
parentRemoved faulty code dealing with water. (diff)
downloadcuberite-369b4abff8ac9836536feff26e7e62bacec8bd97.tar
cuberite-369b4abff8ac9836536feff26e7e62bacec8bd97.tar.gz
cuberite-369b4abff8ac9836536feff26e7e62bacec8bd97.tar.bz2
cuberite-369b4abff8ac9836536feff26e7e62bacec8bd97.tar.lz
cuberite-369b4abff8ac9836536feff26e7e62bacec8bd97.tar.xz
cuberite-369b4abff8ac9836536feff26e7e62bacec8bd97.tar.zst
cuberite-369b4abff8ac9836536feff26e7e62bacec8bd97.zip
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))