diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index d21c0e36..959ec454 100644 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -2366,7 +2366,7 @@ namespace TShockAPI var type = Main.projectile[index].type; // TODO: This needs to be moved somewhere else. - if (args.Player.LacksProjectilePermission(index, type) && type != 102 && type != 100 && !TShock.Config.IgnoreProjKill) + if (!args.Player.HasProjectilePermission(index, type) && type != 102 && type != 100 && !TShock.Config.IgnoreProjKill) { args.Player.Disable("Does not have projectile permission to kill projectile.", DisableFlags.WriteToLogAndConsole); args.Player.RemoveProjectile(ident, owner); diff --git a/TShockAPI/TSPlayer.cs b/TShockAPI/TSPlayer.cs index aae8ace8..868f20b2 100644 --- a/TShockAPI/TSPlayer.cs +++ b/TShockAPI/TSPlayer.cs @@ -804,15 +804,6 @@ namespace TShockAPI } } - /// Checks to see if this player object lacks access rights to a given projectile. Used by projectile bans. - /// The projectile index from Main.projectiles (NOT from a packet directly). - /// The type of projectile, from Main.projectiles. - /// If the player has lacks access rights to the projectile. - public bool LacksProjectilePermission(int index, int type) - { - return !HasProjectilePermission(index, type); - } - /// Checks to see if this player object has access rights to a given projectile. Used by projectile bans. /// The projectile index from Main.projectiles (NOT from a packet directly). /// The type of projectile, from Main.projectiles.