Remove TShock.CheckProjectilePermission
Add TSPlayer.HasProjectilePermission() and its inverse: TSPlayer.LacksProjectilePermission()
This commit is contained in:
parent
c5f9a51802
commit
ba851d3570
5 changed files with 54 additions and 37 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue