summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemMilk.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Items/ItemMilk.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Items/ItemMilk.h b/src/Items/ItemMilk.h
index 515c80493..94fa51d09 100644
--- a/src/Items/ItemMilk.h
+++ b/src/Items/ItemMilk.h
@@ -28,8 +28,7 @@ public:
if (!a_Player->IsGameModeCreative())
{
- a_Player->GetInventory().RemoveOneEquippedItem();
- a_Player->GetInventory().AddItem(cItem(E_ITEM_BUCKET));
+ a_Player->ReplaceOneEquippedItemTossRest(cItem(E_ITEM_BUCKET));
}
return true;
}