Fix explosives not being disabled
This commit is contained in:
parent
18421ad208
commit
045eddfcdc
2 changed files with 25 additions and 11 deletions
|
|
@ -637,5 +637,15 @@ namespace TShockAPI
|
|||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public int SearchProjectile(short identity)
|
||||
{
|
||||
for (int i = 0; i < Main.maxProjectiles; i++)
|
||||
{
|
||||
if (Main.projectile[i].identity == identity)
|
||||
return i;
|
||||
}
|
||||
return 1000;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue