Fix GenpopLockerBoundUserInterface prediction (#42365)

fix genpop prediction
This commit is contained in:
slarticodefast
2026-01-12 03:58:56 +01:00
committed by GitHub
parent 71040149a1
commit 94071a6350
2 changed files with 2 additions and 2 deletions

View 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();
};

View 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);