diff options
author | Gargaj <gargaj@conspiracy.hu> | 2015-11-06 10:22:40 +0100 |
---|---|---|
committer | Gargaj <gargaj@conspiracy.hu> | 2015-11-06 10:22:40 +0100 |
commit | 5bcd4b271e7ef8ffa1609e35e3fc9949edebcd96 (patch) | |
tree | e3177c7cc6b9e21566e325cb71571c4b9c3a40e5 /src/Mobs | |
parent | Added ignore=dirty to new submodules (diff) | |
download | cuberite-5bcd4b271e7ef8ffa1609e35e3fc9949edebcd96.tar cuberite-5bcd4b271e7ef8ffa1609e35e3fc9949edebcd96.tar.gz cuberite-5bcd4b271e7ef8ffa1609e35e3fc9949edebcd96.tar.bz2 cuberite-5bcd4b271e7ef8ffa1609e35e3fc9949edebcd96.tar.lz cuberite-5bcd4b271e7ef8ffa1609e35e3fc9949edebcd96.tar.xz cuberite-5bcd4b271e7ef8ffa1609e35e3fc9949edebcd96.tar.zst cuberite-5bcd4b271e7ef8ffa1609e35e3fc9949edebcd96.zip |
Diffstat (limited to 'src/Mobs')
-rw-r--r-- | src/Mobs/Chicken.cpp | 4 | ||||
-rw-r--r-- | src/Mobs/Chicken.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/Mobs/Chicken.cpp b/src/Mobs/Chicken.cpp index a52d1a2da..71f401e6e 100644 --- a/src/Mobs/Chicken.cpp +++ b/src/Mobs/Chicken.cpp @@ -61,6 +61,10 @@ void cChicken::GetDrops(cItems & a_Drops, cEntity * a_Killer) +void cChicken::HandleFalling(void) +{ + // empty - chickens don't take fall damage +} diff --git a/src/Mobs/Chicken.h b/src/Mobs/Chicken.h index 9349187c6..05cf0ed39 100644 --- a/src/Mobs/Chicken.h +++ b/src/Mobs/Chicken.h @@ -21,6 +21,8 @@ public: virtual const cItem GetFollowedItem(void) const override { return cItem(E_ITEM_SEEDS); } + virtual void HandleFalling(void) override; + private: int m_EggDropTimer; |