1
0

Ocelots don't take fall damage (#4171)

This commit is contained in:
Bond-009
2018-02-04 21:53:35 +01:00
committed by Alexander Harkness
parent a28a93c9ca
commit d12804d4c0
4 changed files with 19 additions and 6 deletions

View File

@@ -74,10 +74,12 @@ void cChicken::GetDrops(cItems & a_Drops, cEntity * a_Killer)
void cChicken::HandleFalling(void)
bool cChicken::DoTakeDamage(TakeDamageInfo & a_TDI)
{
// empty - chickens don't take fall damage
if (a_TDI.DamageType == dtFalling)
{
return false;
}
return super::DoTakeDamage(a_TDI);
}