diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-05-09 23:10:02 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-05-09 23:10:02 +0200 |
commit | c8631d9a9b924c4c4d030bac3ed4e4a869ec2fd8 (patch) | |
tree | cb3a0464bfe50aa27a9f10f45112b4005f2ce5dd /src/Inventory.cpp | |
parent | Merge pull request #992 from mc-server/coverity_fixes (diff) | |
download | cuberite-c8631d9a9b924c4c4d030bac3ed4e4a869ec2fd8.tar cuberite-c8631d9a9b924c4c4d030bac3ed4e4a869ec2fd8.tar.gz cuberite-c8631d9a9b924c4c4d030bac3ed4e4a869ec2fd8.tar.bz2 cuberite-c8631d9a9b924c4c4d030bac3ed4e4a869ec2fd8.tar.lz cuberite-c8631d9a9b924c4c4d030bac3ed4e4a869ec2fd8.tar.xz cuberite-c8631d9a9b924c4c4d030bac3ed4e4a869ec2fd8.tar.zst cuberite-c8631d9a9b924c4c4d030bac3ed4e4a869ec2fd8.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Inventory.cpp | 10 |
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)) |