From 369b4abff8ac9836536feff26e7e62bacec8bd97 Mon Sep 17 00:00:00 2001 From: Samuel Barney Date: Mon, 14 Oct 2013 08:12:23 -0600 Subject: Mobs no longer spawn up in the air. --- source/World.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/World.cpp') 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)) -- cgit v1.2.3