Bouncer: Handle case where prefix < 1

This commit is contained in:
Lucas Nicodemus 2017-12-17 00:39:11 -07:00
parent 9d0c84fd13
commit 3f79a904da

View file

@ -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;