summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Cow.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Mobs/Cow.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Mobs/Cow.h b/src/Mobs/Cow.h
index ee1a4fafe..6ce51e806 100644
--- a/src/Mobs/Cow.h
+++ b/src/Mobs/Cow.h
@@ -20,7 +20,10 @@ public:
virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override;
virtual void OnRightClicked(cPlayer & a_Player) override;
- virtual const cItem GetFollowedItem(void) const override { return cItem(E_ITEM_WHEAT); }
+ virtual void GetFollowedItems(cItems & a_Items) override
+ {
+ a_Items.Add(E_ITEM_WHEAT);
+ }
} ;