Fix item giving
Previously this would potentially drop too many items on the ground if the inventory doesn't have enough free slots.
This commit is contained in:
parent
1baad06484
commit
4f22d6a11e
1 changed files with 2 additions and 2 deletions
|
|
@ -1556,8 +1556,8 @@ namespace TShockAPI
|
||||||
if (Depleted(item = GiveItemDirectly_FillEmptyInventorySlot(item, slot)))
|
if (Depleted(item = GiveItemDirectly_FillEmptyInventorySlot(item, slot)))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// oh no, i can't give... guess i gotta spill it on the floor
|
// oh no, i can't give the rest of the items... guess i gotta spill it on the floor
|
||||||
GiveItemByDrop(type, stack, prefix);
|
GiveItemByDrop(item.type, item.stack, item.prefix);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SendItemSlotPacketFor(int slot)
|
private void SendItemSlotPacketFor(int slot)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue