Simpler check (thanks @bartico6) on OPK's nullcheck.
This commit is contained in:
parent
e19fd22fe0
commit
5c9d2ed870
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ namespace TShockAPI
|
||||||
/// <param name="args">The packet arguments that the event has.</param>
|
/// <param name="args">The packet arguments that the event has.</param>
|
||||||
internal void OnProjectileKill(object sender, GetDataHandlers.ProjectileKillEventArgs args)
|
internal void OnProjectileKill(object sender, GetDataHandlers.ProjectileKillEventArgs args)
|
||||||
{
|
{
|
||||||
if (args.ProjectileIndex > Main.maxProjectiles || args.ProjectileIndex < 0)
|
if (args.ProjectileIndex < 0)
|
||||||
{
|
{
|
||||||
args.Handled = true;
|
args.Handled = true;
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue