Simpler check (thanks @bartico6) on OPK's nullcheck.

This commit is contained in:
Lucas Nicodemus 2017-12-11 08:23:36 -07:00
parent e19fd22fe0
commit 5c9d2ed870

View file

@ -57,7 +57,7 @@ namespace TShockAPI
/// <param name="args">The packet arguments that the event has.</param>
internal void OnProjectileKill(object sender, GetDataHandlers.ProjectileKillEventArgs args)
{
if (args.ProjectileIndex > Main.maxProjectiles || args.ProjectileIndex < 0)
if (args.ProjectileIndex < 0)
{
args.Handled = true;
return;