]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Remove EntityUid from debug context menu (#24660)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Thu, 1 Feb 2024 08:36:08 +0000 (19:36 +1100)
committerGitHub <noreply@github.com>
Thu, 1 Feb 2024 08:36:08 +0000 (19:36 +1100)
- Probably confusing if you're not familiar with nentities
- if I need the clientside uid for debugging I can just open VV and it's immediately there on first page.

Content.Client/ContextMenu/UI/EntityMenuElement.cs

index 8a8070aeccd7de2d3e857db5638f4b8d37c52961..d088f4f4034f7b2c4a3e5c0df9de36e9c6e4da5a 100644 (file)
@@ -79,12 +79,11 @@ namespace Content.Client.ContextMenu.UI
             var representation = _entityManager.ToPrettyString(entity);
 
             var name = representation.Name;
-            var id = representation.Uid.ToString();
             var prototype = representation.Prototype;
             var playerName = representation.Session?.Name ?? SearchPlayerName(entity);
             var deleted = representation.Deleted;
 
-            return $"{name} ({id} / {_entityManager.GetNetEntity(entity).ToString()}{(prototype != null ? $", {prototype}" : "")}{(playerName != null ? $", {playerName}" : "")}){(deleted ? "D" : "")}";
+            return $"{name} ({_entityManager.GetNetEntity(entity).ToString()}{(prototype != null ? $", {prototype}" : "")}{(playerName != null ? $", {playerName}" : "")}){(deleted ? "D" : "")}";
         }
 
         private string GetEntityDescription(EntityUid entity)
@@ -94,7 +93,7 @@ namespace Content.Client.ContextMenu.UI
                 return GetEntityDescriptionAdmin(entity);
             }
 
-            return Identity.Name(entity, _entityManager, _playerManager.LocalPlayer!.ControlledEntity!);
+            return Identity.Name(entity, _entityManager, _playerManager.LocalEntity!);
         }
 
         /// <summary>