diff --git a/TShockAPI/TSPlayer.cs b/TShockAPI/TSPlayer.cs index 495d24a7..244914b6 100644 --- a/TShockAPI/TSPlayer.cs +++ b/TShockAPI/TSPlayer.cs @@ -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) diff --git a/docs/changelog.md b/docs/changelog.md index 58ff73d6..8006ff29 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -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)