Fix cloner UI toggle (#7092)

Co-authored-by: fishfish458 <fishfish458>
This commit is contained in:
Fishfish458
2022-03-13 23:07:48 -05:00
committed by GitHub
parent a871b31f95
commit 1652498830

View File

@@ -59,10 +59,9 @@ namespace Content.Server.Medical
private void OnActivated(EntityUid uid, MedicalScannerComponent scannerComponent, ActivateInWorldEvent args)
{
if (!TryComp<ActorComponent>(args.User, out var actor) || !IsPowered(scannerComponent))
if (!IsPowered(scannerComponent))
return;
scannerComponent.UserInterface?.Toggle(actor.PlayerSession);
UpdateUserInterface(uid, scannerComponent);
}