From 3f79a904daa43f13159502de05b6371f2f9c5192 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Sun, 17 Dec 2017 00:39:11 -0700 Subject: [PATCH] Bouncer: Handle case where prefix < 1 --- TShockAPI/Bouncer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/Bouncer.cs b/TShockAPI/Bouncer.cs index 91e3d6e8..3e460013 100644 --- a/TShockAPI/Bouncer.cs +++ b/TShockAPI/Bouncer.cs @@ -360,7 +360,7 @@ namespace TShockAPI } //make sure the prefix is a legit value - if (prefix > PrefixID.Count) + if (prefix > PrefixID.Count || prefix < 1) { args.Player.SendData(PacketTypes.ItemDrop, "", id); args.Handled = true;