Fix explosives not being disabled

This commit is contained in:
Deathmax 2011-12-17 22:27:14 +08:00
parent 18421ad208
commit 045eddfcdc
2 changed files with 25 additions and 11 deletions

View file

@ -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;
}
}
}