summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Pig.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-01-29 20:05:38 +0100
committerMattes D <github@xoft.cz>2014-01-29 20:05:38 +0100
commit07fb1bca23d4c80a9fa32a35fa5b39e517d10247 (patch)
tree37ce28c7745fb7b7dab768ce8a0780ea75138503 /src/Mobs/Pig.h
parentAdded instructions for ZIP source downloads. (diff)
parentDid what xoft said (diff)
downloadcuberite-07fb1bca23d4c80a9fa32a35fa5b39e517d10247.tar
cuberite-07fb1bca23d4c80a9fa32a35fa5b39e517d10247.tar.gz
cuberite-07fb1bca23d4c80a9fa32a35fa5b39e517d10247.tar.bz2
cuberite-07fb1bca23d4c80a9fa32a35fa5b39e517d10247.tar.lz
cuberite-07fb1bca23d4c80a9fa32a35fa5b39e517d10247.tar.xz
cuberite-07fb1bca23d4c80a9fa32a35fa5b39e517d10247.tar.zst
cuberite-07fb1bca23d4c80a9fa32a35fa5b39e517d10247.zip
Diffstat (limited to 'src/Mobs/Pig.h')
-rw-r--r--src/Mobs/Pig.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Mobs/Pig.h b/src/Mobs/Pig.h
index 4fd0d8db8..d434324c1 100644
--- a/src/Mobs/Pig.h
+++ b/src/Mobs/Pig.h
@@ -19,6 +19,9 @@ public:
virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = NULL) override;
virtual void OnRightClicked(cPlayer & a_Player) override;
+
+ virtual const cItem GetFollowedItem(void) const override { return cItem(E_ITEM_CARROT); }
+
bool IsSaddled(void) const { return m_bIsSaddled; }
private: