1
0

Don't remove items twice (#4524)

* Don't remove items twice
This commit is contained in:
Mat
2020-03-22 12:17:04 +02:00
committed by GitHub
parent 038194d2a6
commit 49dd645aa6
11 changed files with 16 additions and 19 deletions

View File

@@ -47,7 +47,7 @@ void cCow::OnRightClicked(cPlayer & a_Player)
if (!a_Player.IsGameModeCreative())
{
a_Player.GetInventory().RemoveOneEquippedItem();
a_Player.GetInventory().AddItem(E_ITEM_MILK);
a_Player.GetInventory().AddItem(cItem(E_ITEM_MILK));
}
}
}