Remove index check on Bouncer NewProjectiles
Note: even in the previous iteration of the code the search function returned -1 if it couldn't find it in the system, which would have made removal of projectiles by ident and owner impossible because they weren't found anyway. Either way, this is related to fixing #1584.
This commit is contained in:
parent
f942a6c98a
commit
f2da3f6c83
1 changed files with 1 additions and 1 deletions
|
|
@ -978,7 +978,7 @@ namespace TShockAPI
|
|||
short type = args.Type;
|
||||
int index = args.Index;
|
||||
|
||||
if (index > Main.maxProjectiles || index < 0)
|
||||
if (index > Main.maxProjectiles)
|
||||
{
|
||||
args.Player.RemoveProjectile(ident, owner);
|
||||
args.Handled = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue