diff options
author | Gargaj <gargaj@conspiracy.hu> | 2015-11-29 19:13:31 +0100 |
---|---|---|
committer | Gargaj <gargaj@conspiracy.hu> | 2015-11-29 20:14:28 +0100 |
commit | 4ae3b64b077b444c8217f8da265cb5eedeaf699a (patch) | |
tree | 0da79374832cae75ae5d9e6822712b3b62cbdbe8 /src/Mobs/Cow.cpp | |
parent | Updated DumpInfo plugin (diff) | |
download | cuberite-4ae3b64b077b444c8217f8da265cb5eedeaf699a.tar cuberite-4ae3b64b077b444c8217f8da265cb5eedeaf699a.tar.gz cuberite-4ae3b64b077b444c8217f8da265cb5eedeaf699a.tar.bz2 cuberite-4ae3b64b077b444c8217f8da265cb5eedeaf699a.tar.lz cuberite-4ae3b64b077b444c8217f8da265cb5eedeaf699a.tar.xz cuberite-4ae3b64b077b444c8217f8da265cb5eedeaf699a.tar.zst cuberite-4ae3b64b077b444c8217f8da265cb5eedeaf699a.zip |
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) } } } - |