diff options
author | Bond-009 <bond.009@outlook.com> | 2018-02-04 21:53:35 +0100 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2018-02-04 21:53:35 +0100 |
commit | d12804d4c05d125c8de3187da29013bef6ae5d0b (patch) | |
tree | 866f22486712382c07dddf60e0d2478311888e05 /src/Mobs/Ocelot.cpp | |
parent | cppcheck found an out of bound array access. (#4182) (diff) | |
download | cuberite-d12804d4c05d125c8de3187da29013bef6ae5d0b.tar cuberite-d12804d4c05d125c8de3187da29013bef6ae5d0b.tar.gz cuberite-d12804d4c05d125c8de3187da29013bef6ae5d0b.tar.bz2 cuberite-d12804d4c05d125c8de3187da29013bef6ae5d0b.tar.lz cuberite-d12804d4c05d125c8de3187da29013bef6ae5d0b.tar.xz cuberite-d12804d4c05d125c8de3187da29013bef6ae5d0b.tar.zst cuberite-d12804d4c05d125c8de3187da29013bef6ae5d0b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Mobs/Ocelot.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Mobs/Ocelot.cpp b/src/Mobs/Ocelot.cpp index 50dd249c0..5e94cacb9 100644 --- a/src/Mobs/Ocelot.cpp +++ b/src/Mobs/Ocelot.cpp @@ -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); +} |