Remove redundant admin flag check in AdminVerbSystem.Tools (#36122)
* Remove redundant admin flag check * Formatting
This commit is contained in:
@@ -65,8 +65,6 @@ public sealed partial class AdminVerbSystem
|
||||
if (!_adminManager.HasAdminFlag(player, AdminFlags.Admin))
|
||||
return;
|
||||
|
||||
if (_adminManager.HasAdminFlag(player, AdminFlags.Admin))
|
||||
{
|
||||
if (TryComp<DoorBoltComponent>(args.Target, out var bolts))
|
||||
{
|
||||
Verb bolt = new()
|
||||
@@ -402,7 +400,6 @@ public sealed partial class AdminVerbSystem
|
||||
};
|
||||
args.Verbs.Add(revokeAllAccess);
|
||||
}
|
||||
}
|
||||
|
||||
if (TryComp<StackComponent>(args.Target, out var stack))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user