From 0444987d5037d0390b929ab1013a14a50b1ff807 Mon Sep 17 00:00:00 2001 From: TVK-04 <114073746+TVK-04@users.noreply.github.com> Date: Wed, 24 Dec 2025 18:19:08 +0100 Subject: [PATCH] Fixed Voice Mask and Ripley APU interaction (#42023) Would show player's real identity instead of assumed identity Co-authored-by: TVK-04 <> --- Content.Server/Mech/Systems/MechSystem.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Content.Server/Mech/Systems/MechSystem.cs b/Content.Server/Mech/Systems/MechSystem.cs index 61aa1aa1cc..f4b7ee48a8 100644 --- a/Content.Server/Mech/Systems/MechSystem.cs +++ b/Content.Server/Mech/Systems/MechSystem.cs @@ -1,4 +1,3 @@ -using System.Linq; using Content.Server.Atmos.EntitySystems; using Content.Server.Body.Systems; using Content.Server.Mech.Components; @@ -6,6 +5,7 @@ using Content.Shared.ActionBlocker; using Content.Shared.Damage.Systems; using Content.Shared.DoAfter; using Content.Shared.FixedPoint; +using Content.Shared.IdentityManagement; using Content.Shared.Interaction; using Content.Shared.Mech; using Content.Shared.Mech.Components; @@ -25,6 +25,7 @@ using Robust.Server.GameObjects; using Robust.Shared.Containers; using Robust.Shared.Player; using Robust.Shared.Prototypes; +using System.Linq; namespace Content.Server.Mech.Systems; @@ -219,7 +220,7 @@ public sealed partial class MechSystem : SharedMechSystem { BreakOnMove = true, }; - _popup.PopupEntity(Loc.GetString("mech-eject-pilot-alert", ("item", uid), ("user", args.User)), uid, PopupType.Large); + _popup.PopupEntity(Loc.GetString("mech-eject-pilot-alert", ("item", uid), ("user", Identity.Entity(args.User, EntityManager))), uid, PopupType.Large); _doAfter.TryStartDoAfter(doAfterEventArgs); } @@ -235,7 +236,7 @@ public sealed partial class MechSystem : SharedMechSystem if (_whitelistSystem.IsWhitelistFail(component.PilotWhitelist, args.User)) { - _popup.PopupEntity(Loc.GetString("mech-no-enter", ("item", uid)), args.User); + _popup.PopupEntity(Loc.GetString("mech-no-enter", ("item", uid)), Identity.Entity(args.User, EntityManager)); return; } -- 2.52.0