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)
interfaces:
enum.InstrumentUiKey.Key:
type: InstrumentBoundUserInterface
+ requireInputValidation: false
enum.StationMapUiKey.Key:
type: UntrackedStationMapBoundUserInterface
+ requireInputValidation: false
- type: Sprite
sprite: Objects/Fun/pai.rsi
layers: