From: TVK-04 <114073746+TVK-04@users.noreply.github.com> Date: Wed, 24 Dec 2025 17:19:08 +0000 (+0100) Subject: Fixed Voice Mask and Ripley APU interaction (#42023) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=0444987d5037d0390b929ab1013a14a50b1ff807;p=space-station-14.git Fixed Voice Mask and Ripley APU interaction (#42023) Would show player's real identity instead of assumed identity Co-authored-by: TVK-04 <> --- 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; }