1
0

Add DIG_STATUS_CANCELLED packet and add item resend, when a block can't place/break.

This commit is contained in:
Howaner
2014-05-09 23:10:02 +02:00
parent a38d8b6513
commit c8631d9a9b
4 changed files with 79 additions and 36 deletions

View File

@@ -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))