summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJulian Laubstein <julianlaubstein@yahoo.de>2015-11-06 11:26:58 +0100
committerJulian Laubstein <julianlaubstein@yahoo.de>2015-11-06 11:26:58 +0100
commitda20a8a09b324c07915c8468e43c4fb208c118f9 (patch)
treee3177c7cc6b9e21566e325cb71571c4b9c3a40e5 /src
parentAdded ignore=dirty to new submodules (diff)
parentchickens don't take fall damage (diff)
downloadcuberite-da20a8a09b324c07915c8468e43c4fb208c118f9.tar
cuberite-da20a8a09b324c07915c8468e43c4fb208c118f9.tar.gz
cuberite-da20a8a09b324c07915c8468e43c4fb208c118f9.tar.bz2
cuberite-da20a8a09b324c07915c8468e43c4fb208c118f9.tar.lz
cuberite-da20a8a09b324c07915c8468e43c4fb208c118f9.tar.xz
cuberite-da20a8a09b324c07915c8468e43c4fb208c118f9.tar.zst
cuberite-da20a8a09b324c07915c8468e43c4fb208c118f9.zip
Diffstat (limited to 'src')
-rw-r--r--src/Mobs/Chicken.cpp4
-rw-r--r--src/Mobs/Chicken.h2
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;