Revert "Bouncer: Handle case where prefix < 1"
This reverts commit 3f79a904da.
If prefix is < 1 and we block this event, clients can no longer
delete picked up items. This is what caused what Joshwoo reported.
This commit is contained in:
parent
c1de974e16
commit
263c0bc402
1 changed files with 4 additions and 2 deletions
|
|
@ -359,8 +359,10 @@ namespace TShockAPI
|
|||
return;
|
||||
}
|
||||
|
||||
//make sure the prefix is a legit value
|
||||
if (prefix > PrefixID.Count || prefix < 1)
|
||||
// make sure the prefix is a legit value
|
||||
// Note: Not checking if prefix is less than 1 because if it is, this check
|
||||
// will break item pickups on the client.
|
||||
if (prefix > PrefixID.Count)
|
||||
{
|
||||
args.Player.SendData(PacketTypes.ItemDrop, "", id);
|
||||
args.Handled = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue