Fix PAI BUI (#27357)

This commit is contained in:
metalgearsloth
2024-04-26 22:45:38 +10:00
committed by GitHub
parent 3bed1ddc48
commit 394c325246
2 changed files with 3 additions and 4 deletions

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

View File

@@ -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: