Fix admins unable to hide the coordinates debug monitor (#24084)

Allow admins to hide the coords monitor
This commit is contained in:
Kot 2024-01-14 20:37:29 +04:00 committed by GitHub
parent 29acc5e945
commit 620074ab0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -19,7 +19,5 @@ public sealed class DebugMonitorSystem : EntitySystem
{
if (!_admin.IsActive() && _cfg.GetCVar(CCVars.DebugCoordinatesAdminOnly))
_userInterface.DebugMonitors.SetMonitor(DebugMonitor.Coords, false);
else
_userInterface.DebugMonitors.SetMonitor(DebugMonitor.Coords, true);
}
}
}