]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix admin loc spam 2 (#42265)
authorPrincess Cheeseballs <66055347+Princess-Cheeseballs@users.noreply.github.com>
Tue, 6 Jan 2026 19:29:10 +0000 (11:29 -0800)
committerGitHub <noreply@github.com>
Tue, 6 Jan 2026 19:29:10 +0000 (20:29 +0100)
Content.Client/Administration/AdminNameOverlay.cs

index e51d4efe1b4b991bfcc39d20e81a4f48b73e245f..d1a9f6f7a72a030d2c2d8a9b7f3fe38fb10cd44d 100644 (file)
@@ -134,7 +134,7 @@ internal sealed class AdminNameOverlay : Overlay
                 ? null
                 : _prototypeManager.Index(playerInfo.RoleProto.Value);
 
-            var roleName = Loc.GetString(rolePrototype?.Name ?? RoleTypePrototype.FallbackName);
+            var roleName = rolePrototype?.Name ?? RoleTypePrototype.FallbackName;
             var roleColor = rolePrototype?.Color ?? RoleTypePrototype.FallbackColor;
             var roleSymbol = rolePrototype?.Symbol ?? RoleTypePrototype.FallbackSymbol;
 
@@ -241,7 +241,7 @@ internal sealed class AdminNameOverlay : Overlay
                     color = roleColor;
                     symbol = IsFiltered(playerInfo.RoleProto) ? symbol : string.Empty;
                     text = IsFiltered(playerInfo.RoleProto)
-                        ? roleName.ToUpper()
+                        ? Loc.GetString(roleName).ToUpper()
                         : string.Empty;
                     break;
                 case AdminOverlayAntagFormat.Subtype: