1
0

Mobs no longer spawn up in the air.

This commit is contained in:
Samuel Barney 2013-10-14 08:12:23 -06:00
parent 277a18626d
commit 369b4abff8

View File

@ -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))