Fixing my random if logic.
Really.. time for bed. The Any wasn't terrible, but itwould have allow cross sending projectiles within that dictionary. (send gold stab with copper in hand, or vice versa etc)
This commit is contained in:
parent
91e3ebf4f0
commit
f48a18aa7a
1 changed files with 1 additions and 1 deletions
|
|
@ -799,7 +799,7 @@ namespace TShockAPI
|
|||
|
||||
if (stabProjectile.ContainsKey(type))
|
||||
{
|
||||
if (stabProjectile.Values.Any(t => t == args.Player.TPlayer.HeldItem.type))
|
||||
if (stabProjectile[type] == args.Player.TPlayer.HeldItem.type)
|
||||
{
|
||||
args.Handled = false;
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue