Bouncer: Handle case where prefix < 1
This commit is contained in:
parent
9d0c84fd13
commit
3f79a904da
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue