Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion TShockAPI/Bouncer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1249,7 +1249,8 @@ internal void OnItemDrop(object sender, GetDataHandlers.ItemDropEventArgs args)
}

// stop the client from changing the item type of a drop
if (Main.item[id].active && Main.item[id].type != type &&
// as long as it's not the last item
if (id < Main.maxItems && Main.item[id].active && Main.item[id].type != type &&
!(Main.item[id].type == ItemID.EmptyBucket && type == ItemID.WaterBucket)) // Empty bucket turns into Water Bucket on rainy days
{
TShock.Log.ConsoleDebug(GetString("Bouncer / OnItemDrop rejected from item drop check from {0}", args.Player.Name));
Expand Down
Loading