summaryrefslogtreecommitdiffstats
path: root/src/Inventory.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-05-15 21:16:04 +0200
committerMattes D <github@xoft.cz>2014-05-15 21:16:04 +0200
commit0e43f886689db3701881861b5bc0fe7731959b93 (patch)
treedc75aae5676d6cb138d005ff274d57c114f6e3c9 /src/Inventory.cpp
parentAdded doxy-comment requirement (diff)
parentFix compile error. (diff)
downloadcuberite-0e43f886689db3701881861b5bc0fe7731959b93.tar
cuberite-0e43f886689db3701881861b5bc0fe7731959b93.tar.gz
cuberite-0e43f886689db3701881861b5bc0fe7731959b93.tar.bz2
cuberite-0e43f886689db3701881861b5bc0fe7731959b93.tar.lz
cuberite-0e43f886689db3701881861b5bc0fe7731959b93.tar.xz
cuberite-0e43f886689db3701881861b5bc0fe7731959b93.tar.zst
cuberite-0e43f886689db3701881861b5bc0fe7731959b93.zip
Diffstat (limited to 'src/Inventory.cpp')
-rw-r--r--src/Inventory.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Inventory.cpp b/src/Inventory.cpp
index a365e4ed4..bce882c88 100644
--- a/src/Inventory.cpp
+++ b/src/Inventory.cpp
@@ -243,6 +243,16 @@ void cInventory::SetHotbarSlot(int a_HotBarSlotNum, const cItem & a_Item)
+void cInventory::SendEquippedSlot()
+{
+ int EquippedSlotNum = cInventory::invArmorCount + cInventory::invInventoryCount + GetEquippedSlotNum();
+ SendSlot(EquippedSlotNum);
+}
+
+
+
+
+
const cItem & cInventory::GetSlot(int a_SlotNum) const
{
if ((a_SlotNum < 0) || (a_SlotNum >= invNumSlots))