]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Pacifist messages use target's identity name instead of entity name (#29325)
authorArkiveDev <95712736+ArkiveDev@users.noreply.github.com>
Sat, 22 Jun 2024 05:19:40 +0000 (01:19 -0400)
committerGitHub <noreply@github.com>
Sat, 22 Jun 2024 05:19:40 +0000 (15:19 +1000)
Content.Shared/CombatMode/Pacification/PacificationSystem.cs

index a927e1a6970208551e2f392aaa50e5826019d4e1..14507ce1f5ce494ac5d79e2c595fa661c43492e2 100644 (file)
@@ -54,7 +54,8 @@ public sealed class PacificationSystem : EntitySystem
             && !(_timing.CurTime > user.Comp.NextPopupTime))
             return;
 
-        _popup.PopupClient(Loc.GetString(reason, ("entity", target)), user, user);
+        var targetName = Identity.Entity(target, EntityManager);
+        _popup.PopupClient(Loc.GetString(reason, ("entity", targetName)), user, user);
         user.Comp.NextPopupTime = _timing.CurTime + user.Comp.PopupCooldown;
         user.Comp.LastAttackedEntity = target;
     }