summaryrefslogtreecommitdiffstats
path: root/src/Inventory.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-05-07 20:59:25 +0200
committerHowaner <franzi.moos@googlemail.com>2014-05-07 21:00:21 +0200
commit10e3c262db1ca37f1dabae7400246ec56a3c19cd (patch)
tree501c4c0de68fb983e326e565f0254f16ec519278 /src/Inventory.cpp
parentChange m_RepairCost to int. (diff)
downloadcuberite-10e3c262db1ca37f1dabae7400246ec56a3c19cd.tar
cuberite-10e3c262db1ca37f1dabae7400246ec56a3c19cd.tar.gz
cuberite-10e3c262db1ca37f1dabae7400246ec56a3c19cd.tar.bz2
cuberite-10e3c262db1ca37f1dabae7400246ec56a3c19cd.tar.lz
cuberite-10e3c262db1ca37f1dabae7400246ec56a3c19cd.tar.xz
cuberite-10e3c262db1ca37f1dabae7400246ec56a3c19cd.tar.zst
cuberite-10e3c262db1ca37f1dabae7400246ec56a3c19cd.zip
Diffstat (limited to 'src/Inventory.cpp')
-rw-r--r--src/Inventory.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Inventory.cpp b/src/Inventory.cpp
index c7c089d5f..a365e4ed4 100644
--- a/src/Inventory.cpp
+++ b/src/Inventory.cpp
@@ -376,6 +376,7 @@ bool cInventory::DamageItem(int a_SlotNum, short a_Amount)
if (!Grid->DamageItem(GridSlotNum, a_Amount))
{
// The item has been damaged, but did not break yet
+ SendSlot(a_SlotNum);
return false;
}