summaryrefslogtreecommitdiffstats
path: root/source/Inventory.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-19 20:41:16 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-05-19 20:41:16 +0200
commit5d3ade02671cef162c3fdfd20fc7aaf760de0505 (patch)
tree145fc70294eb169a101bbe1354dc74df6089ba6a /source/Inventory.cpp
parentDebuggers: a simple test of armor slot setting (diff)
downloadcuberite-5d3ade02671cef162c3fdfd20fc7aaf760de0505.tar
cuberite-5d3ade02671cef162c3fdfd20fc7aaf760de0505.tar.gz
cuberite-5d3ade02671cef162c3fdfd20fc7aaf760de0505.tar.bz2
cuberite-5d3ade02671cef162c3fdfd20fc7aaf760de0505.tar.lz
cuberite-5d3ade02671cef162c3fdfd20fc7aaf760de0505.tar.xz
cuberite-5d3ade02671cef162c3fdfd20fc7aaf760de0505.tar.zst
cuberite-5d3ade02671cef162c3fdfd20fc7aaf760de0505.zip
Diffstat (limited to '')
-rw-r--r--source/Inventory.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/Inventory.cpp b/source/Inventory.cpp
index 7cfe69be8..8591b7dc2 100644
--- a/source/Inventory.cpp
+++ b/source/Inventory.cpp
@@ -197,6 +197,8 @@ void cInventory::SetSlot(int a_SlotNum, const cItem & a_Item)
{
m_Owner.GetWorld()->BroadcastEntityEquipment(m_Owner, SlotNumToEntityEquipmentID(a_SlotNum), a_Item, m_Owner.GetClientHandle());
}
+
+ SendSlot(a_SlotNum);
}