Fix powered machines working unpowered if the panel is open. (#32135)

This commit is contained in:
Pieter-Jan Briers
2024-09-14 01:58:54 +02:00
committed by GitHub
parent 1a4a467a2e
commit 8385de8769
2 changed files with 0 additions and 8 deletions

View File

@@ -18,9 +18,6 @@ public sealed class ActivatableUIRequiresPowerSystem : SharedActivatableUIRequir
return;
}
if (TryComp<WiresPanelComponent>(ent.Owner, out var panel) && panel.Open)
return;
_popup.PopupClient(Loc.GetString("base-computer-ui-component-not-powered", ("machine", ent.Owner)), args.User, args.User);
args.Cancel();
}