From: slarticodefast <161409025+slarticodefast@users.noreply.github.com> Date: Mon, 12 Jan 2026 02:58:56 +0000 (+0100) Subject: Fix GenpopLockerBoundUserInterface prediction (#42365) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=94071a63508ed4d187652bb60d444ccd027258dc;p=space-station-14.git Fix GenpopLockerBoundUserInterface prediction (#42365) fix genpop prediction --- diff --git a/Content.Client/Security/Ui/GenpopLockerBoundUserInterface.cs b/Content.Client/Security/Ui/GenpopLockerBoundUserInterface.cs index a546fa6fc6..63276e1a90 100644 --- a/Content.Client/Security/Ui/GenpopLockerBoundUserInterface.cs +++ b/Content.Client/Security/Ui/GenpopLockerBoundUserInterface.cs @@ -16,7 +16,7 @@ public sealed class GenpopLockerBoundUserInterface(EntityUid owner, Enum uiKey) _menu.OnConfigurationComplete += (name, time, crime) => { - SendMessage(new GenpopLockerIdConfiguredMessage(name, time, crime)); + SendPredictedMessage(new GenpopLockerIdConfiguredMessage(name, time, crime)); Close(); }; diff --git a/Content.Shared/Security/Systems/SharedGenpopSystem.cs b/Content.Shared/Security/Systems/SharedGenpopSystem.cs index 66bf5ca254..410922747b 100644 --- a/Content.Shared/Security/Systems/SharedGenpopSystem.cs +++ b/Content.Shared/Security/Systems/SharedGenpopSystem.cs @@ -59,7 +59,7 @@ public abstract class SharedGenpopSystem : EntitySystem // Instead, we just fill in the spot temporarily til the checks pass. ent.Comp.LinkedId = EntityUid.Invalid; - _lock.Lock(ent.Owner, null); + _lock.Lock(ent.Owner, args.Actor); _entityStorage.CloseStorage(ent); CreateId(ent, args.Name, args.Sentence, args.Crime);