summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Pig.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Mobs/Pig.h')
-rw-r--r--src/Mobs/Pig.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Mobs/Pig.h b/src/Mobs/Pig.h
index 0fe4b4fed..56c9f7ed6 100644
--- a/src/Mobs/Pig.h
+++ b/src/Mobs/Pig.h
@@ -24,7 +24,10 @@ public:
virtual void OnRightClicked(cPlayer & a_Player) override;
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) 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);
+ }
bool IsSaddled(void) const { return m_bIsSaddled; }