Fix regression where Bouncer would create dupe items on drop

This commit is contained in:
Lucas Nicodemus 2017-12-17 12:40:24 -07:00
parent 263c0bc402
commit 713dd2614a

View file

@ -370,7 +370,7 @@ namespace TShockAPI
} }
//Item removed, let client do this to prevent item duplication //Item removed, let client do this to prevent item duplication
// client side (but only if it passed the range check) // client side (but only if it passed the range check) (i.e., return false)
if (type == 0) if (type == 0)
{ {
if (TShock.CheckRangePermission(args.Player, (int)(Main.item[id].position.X / 16f), (int)(Main.item[id].position.Y / 16f))) if (TShock.CheckRangePermission(args.Player, (int)(Main.item[id].position.X / 16f), (int)(Main.item[id].position.Y / 16f)))
@ -381,7 +381,7 @@ namespace TShockAPI
return; return;
} }
args.Handled = true; args.Handled = false;
return; return;
} }