Remove TShock.CheckProjectilePermission

Add TSPlayer.HasProjectilePermission() and its inverse:
	TSPlayer.LacksProjectilePermission()
This commit is contained in:
Lucas Nicodemus 2017-12-10 23:36:16 -07:00
parent c5f9a51802
commit ba851d3570
5 changed files with 54 additions and 37 deletions

View file

@ -261,7 +261,7 @@ namespace TShockAPI
return;
}
bool hasPermission = !TShock.CheckProjectilePermission(args.Player, index, type);
bool hasPermission = args.Player.HasProjectilePermission(index, type);
if (!TShock.Config.IgnoreProjUpdate && !hasPermission && !args.Player.HasPermission(Permissions.ignoreprojectiledetection))
{
if (type == ProjectileID.BlowupSmokeMoonlord