diff options
Diffstat (limited to 'src/Mobs/Mooshroom.cpp')
-rw-r--r-- | src/Mobs/Mooshroom.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Mobs/Mooshroom.cpp b/src/Mobs/Mooshroom.cpp index 31a1b8978..135a8ba90 100644 --- a/src/Mobs/Mooshroom.cpp +++ b/src/Mobs/Mooshroom.cpp @@ -43,18 +43,18 @@ void cMooshroom::OnRightClicked(cPlayer & a_Player) { case E_ITEM_BUCKET: { + // Milk the cow. if (!a_Player.IsGameModeCreative()) { - a_Player.GetInventory().RemoveOneEquippedItem(); - a_Player.GetInventory().AddItem(cItem(E_ITEM_MILK)); + a_Player.ReplaceOneEquippedItemTossRest(cItem(E_ITEM_MILK)); } } break; case E_ITEM_BOWL: { + // Soup the cow. if (!a_Player.IsGameModeCreative()) { - a_Player.GetInventory().RemoveOneEquippedItem(); - a_Player.GetInventory().AddItem(cItem(E_ITEM_MUSHROOM_SOUP)); + a_Player.ReplaceOneEquippedItemTossRest(cItem(E_ITEM_MUSHROOM_SOUP)); } } break; case E_ITEM_SHEARS: |