Merge pull request #2784 from punchready/patch-2

Fix item giving
This commit is contained in:
Lucas Nicodemus 2022-10-31 17:50:21 -07:00 committed by GitHub
commit 969e60775a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -1556,8 +1556,8 @@ namespace TShockAPI
if (Depleted(item = GiveItemDirectly_FillEmptyInventorySlot(item, slot)))
return;
// oh no, i can't give... guess i gotta spill it on the floor
GiveItemByDrop(type, stack, prefix);
// oh no, i can't give the rest of the items... guess i gotta spill it on the floor
GiveItemByDrop(item.type, item.stack, item.prefix);
}
private void SendItemSlotPacketFor(int slot)

View file

@ -15,7 +15,7 @@ Use past tense when adding new entries; sign your name off when you add or chang
* If there is no section called "Upcoming changes" below this line, please add one with `## Upcoming changes` as the first line, and then a bulleted item directly after with the first change. -->
## Upcoming changes
* Your changes could and should be here!
* Fixed item giving potentially dropping too many items (@PotatoCider, @punchready)
## TShock 5.0.0
* Reduced load/save console spam. (@SignatureBeef, @YehnBeep)