From 394c325246c76e234ef6600194a45d9325d3702d Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Fri, 26 Apr 2024 22:45:38 +1000 Subject: [PATCH] Fix PAI BUI (#27357) --- Content.Shared/UserInterface/ActivatableUISystem.cs | 5 +---- Resources/Prototypes/Entities/Objects/Fun/pai.yml | 2 ++ 2 files changed, 3 insertions(+), 4 deletions(-) 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: -- 2.52.0