summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Rabbit.h
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2015-11-23 23:57:59 +0100
committerworktycho <work.tycho@gmail.com>2015-11-23 23:57:59 +0100
commit2d408e864706a4dd8d7c227edefd281f6a627895 (patch)
tree5ebe9e808e82c22a427429881526fb0ce390deb4 /src/Mobs/Rabbit.h
parentFixed display of helpmessage (diff)
parentchange from single followable item to multiple (diff)
downloadcuberite-2d408e864706a4dd8d7c227edefd281f6a627895.tar
cuberite-2d408e864706a4dd8d7c227edefd281f6a627895.tar.gz
cuberite-2d408e864706a4dd8d7c227edefd281f6a627895.tar.bz2
cuberite-2d408e864706a4dd8d7c227edefd281f6a627895.tar.lz
cuberite-2d408e864706a4dd8d7c227edefd281f6a627895.tar.xz
cuberite-2d408e864706a4dd8d7c227edefd281f6a627895.tar.zst
cuberite-2d408e864706a4dd8d7c227edefd281f6a627895.zip
Diffstat (limited to 'src/Mobs/Rabbit.h')
-rw-r--r--src/Mobs/Rabbit.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Mobs/Rabbit.h b/src/Mobs/Rabbit.h
index 56181e3d0..79a9afe15 100644
--- a/src/Mobs/Rabbit.h
+++ b/src/Mobs/Rabbit.h
@@ -34,7 +34,12 @@ public:
CLASS_PROTODEF(cRabbit)
virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override;
- virtual const cItem GetFollowedItem(void) const override { return cItem(E_ITEM_CARROT); }
+ virtual void GetFollowedItems(cItems & a_Items) override
+ {
+ a_Items.Add(E_ITEM_CARROT);
+ a_Items.Add(E_ITEM_GOLDEN_CARROT);
+ a_Items.Add(E_BLOCK_DANDELION);
+ }
eRabbitType GetRabbitType() const { return m_Type; }
UInt8 GetRabbitTypeAsNumber() const { return static_cast<UInt8>(GetRabbitType()); }