From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Fri, 26 Apr 2024 12:45:38 +0000 (+1000) Subject: Fix PAI BUI (#27357) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=394c325246c76e234ef6600194a45d9325d3702d;p=space-station-14.git Fix PAI BUI (#27357) --- diff --git a/Content.Shared/UserInterface/ActivatableUISystem.cs b/Content.Shared/UserInterface/ActivatableUISystem.cs index bfe8491b15..5d848c0fde 100644 --- a/Content.Shared/UserInterface/ActivatableUISystem.cs +++ b/Content.Shared/UserInterface/ActivatableUISystem.cs @@ -56,10 +56,7 @@ public sealed partial class ActivatableUISystem : EntitySystem if (args.Handled || args.Key == null) return; - if (!TryComp(args.Performer, out ActorComponent? actor)) - return; - - args.Handled = _uiSystem.TryToggleUi(uid, args.Key, actor.PlayerSession); + args.Handled = _uiSystem.TryToggleUi(uid, args.Key, args.Performer); } private void AddOpenUiVerb(EntityUid uid, ActivatableUIComponent component, GetVerbsEvent args) diff --git a/Resources/Prototypes/Entities/Objects/Fun/pai.yml b/Resources/Prototypes/Entities/Objects/Fun/pai.yml index df8f487240..1b9c5303c6 100644 --- a/Resources/Prototypes/Entities/Objects/Fun/pai.yml +++ b/Resources/Prototypes/Entities/Objects/Fun/pai.yml @@ -15,8 +15,10 @@ interfaces: enum.InstrumentUiKey.Key: type: InstrumentBoundUserInterface + requireInputValidation: false enum.StationMapUiKey.Key: type: UntrackedStationMapBoundUserInterface + requireInputValidation: false - type: Sprite sprite: Objects/Fun/pai.rsi layers: