From 5c9d2ed870c1254d4d2d38f062d22b6ceb504321 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Mon, 11 Dec 2017 08:23:36 -0700 Subject: [PATCH] Simpler check (thanks @bartico6) on OPK's nullcheck. --- TShockAPI/Bouncer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/Bouncer.cs b/TShockAPI/Bouncer.cs index 5b802cef..48613832 100644 --- a/TShockAPI/Bouncer.cs +++ b/TShockAPI/Bouncer.cs @@ -57,7 +57,7 @@ namespace TShockAPI /// The packet arguments that the event has. internal void OnProjectileKill(object sender, GetDataHandlers.ProjectileKillEventArgs args) { - if (args.ProjectileIndex > Main.maxProjectiles || args.ProjectileIndex < 0) + if (args.ProjectileIndex < 0) { args.Handled = true; return;