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:
Patrikkk 2020-05-18 02:44:39 +02:00
parent 91e3ebf4f0
commit f48a18aa7a

View file

@ -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;