diff options
Diffstat (limited to 'src/Mobs/Cow.cpp')
-rw-r--r-- | src/Mobs/Cow.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Mobs/Cow.cpp b/src/Mobs/Cow.cpp index a45010201..dec8eface 100644 --- a/src/Mobs/Cow.cpp +++ b/src/Mobs/Cow.cpp @@ -36,7 +36,10 @@ void cCow::GetDrops(cItems & a_Drops, cEntity * a_Killer) void cCow::OnRightClicked(cPlayer & a_Player) { - if ((a_Player.GetEquippedItem().m_ItemType == E_ITEM_BUCKET)) + super::OnRightClicked(a_Player); + + short HeldItem = a_Player.GetEquippedItem().m_ItemType; + if (HeldItem == E_ITEM_BUCKET) { if (!a_Player.IsGameModeCreative()) { @@ -45,4 +48,3 @@ void cCow::OnRightClicked(cPlayer & a_Player) } } } - |