From f48a18aa7aee09ca553569201e35834623d8ad69 Mon Sep 17 00:00:00 2001 From: Patrikkk Date: Mon, 18 May 2020 02:44:39 +0200 Subject: [PATCH] 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) --- TShockAPI/Bouncer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/Bouncer.cs b/TShockAPI/Bouncer.cs index 18b0cbd3..511c5820 100644 --- a/TShockAPI/Bouncer.cs +++ b/TShockAPI/Bouncer.cs @@ -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;