]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix GenpopLockerBoundUserInterface prediction (#42365)
authorslarticodefast <161409025+slarticodefast@users.noreply.github.com>
Mon, 12 Jan 2026 02:58:56 +0000 (03:58 +0100)
committerGitHub <noreply@github.com>
Mon, 12 Jan 2026 02:58:56 +0000 (02:58 +0000)
fix genpop prediction

Content.Client/Security/Ui/GenpopLockerBoundUserInterface.cs
Content.Shared/Security/Systems/SharedGenpopSystem.cs

index a546fa6fc6f0fe633fd69d0fcd6f1d9937818b29..63276e1a90f0df2a825fd2e051cff215414004a6 100644 (file)
@@ -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();
         };
 
index 66bf5ca25401392ae6c51f465db3621404c031f5..410922747b987f39e4a65d9a508ac2ee4d7bcf56 100644 (file)
@@ -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);