]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Getting creamed will not reveal a person's identity (#31291)
authorWinkarst <74284083+Winkarst-cpu@users.noreply.github.com>
Wed, 21 Aug 2024 21:50:34 +0000 (00:50 +0300)
committerGitHub <noreply@github.com>
Wed, 21 Aug 2024 21:50:34 +0000 (17:50 -0400)
Banana cream pies don't reveal a person's identity

Content.Server/Nutrition/EntitySystems/CreamPieSystem.cs

index 50b9297ca73c719e783c661befdb52f2ef7c3a61..19ed48ec49c15f6ef8692ea79493955a70727115 100644 (file)
@@ -5,6 +5,7 @@ using Content.Server.Nutrition.Components;
 using Content.Server.Popups;
 using Content.Shared.Containers.ItemSlots;
 using Content.Shared.Explosion.Components;
+using Content.Shared.IdentityManagement;
 using Content.Shared.Nutrition;
 using Content.Shared.Nutrition.Components;
 using Content.Shared.Nutrition.EntitySystems;
@@ -99,7 +100,7 @@ namespace Content.Server.Nutrition.EntitySystems
             {
                 otherPlayers.RemovePlayer(actor.PlayerSession);
             }
-            _popup.PopupEntity(Loc.GetString("cream-pied-component-on-hit-by-message-others", ("owner", uid), ("thrower", args.Thrown)), uid, otherPlayers, false);
+            _popup.PopupEntity(Loc.GetString("cream-pied-component-on-hit-by-message-others", ("owner", Identity.Name(uid, EntityManager)), ("thrower", args.Thrown)), uid, otherPlayers, false);
         }
 
         private void OnRejuvenate(Entity<CreamPiedComponent> entity, ref RejuvenateEvent args)