Ocelots don't take fall damage (#4171)
This commit is contained in:
committed by
Alexander Harkness
parent
a28a93c9ca
commit
d12804d4c0
@@ -218,3 +218,13 @@ bool cOcelot::IsCatSittingOnBlock(cWorld * a_World, Vector3d a_BlockPosition)
|
||||
|
||||
|
||||
|
||||
|
||||
bool cOcelot::DoTakeDamage(TakeDamageInfo & a_TDI)
|
||||
{
|
||||
if (a_TDI.DamageType == dtFalling)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return super::DoTakeDamage(a_TDI);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user