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
|
|
@ -360,7 +360,9 @@ namespace TShockAPI
|
||||||
}
|
}
|
||||||
|
|
||||||
// make sure the prefix is a legit value
|
// make sure the prefix is a legit value
|
||||||
if (prefix > PrefixID.Count || prefix < 1)
|
// 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.Player.SendData(PacketTypes.ItemDrop, "", id);
|
||||||
args.Handled = true;
|
args.Handled = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue