]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix PAI BUI (#27357)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Fri, 26 Apr 2024 12:45:38 +0000 (22:45 +1000)
committerGitHub <noreply@github.com>
Fri, 26 Apr 2024 12:45:38 +0000 (22:45 +1000)
Content.Shared/UserInterface/ActivatableUISystem.cs
Resources/Prototypes/Entities/Objects/Fun/pai.yml

index bfe8491b1578eb5c244c5b8a2bdb6fdc7745c325..5d848c0fdec37654d11a7dcab8161b3bdd89ec12 100644 (file)
@@ -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<ActivationVerb> args)
index df8f4872408d9aafce62ef09006ae2e646aca366..1b9c5303c6b21d0242f7eb303a2a7c0c019ebe20 100644 (file)
     interfaces:
       enum.InstrumentUiKey.Key:
         type: InstrumentBoundUserInterface
+        requireInputValidation: false
       enum.StationMapUiKey.Key:
         type: UntrackedStationMapBoundUserInterface
+        requireInputValidation: false
   - type: Sprite
     sprite: Objects/Fun/pai.rsi
     layers: