Fix being able to access wires without opening the panel (#8335)

Co-authored-by: ike709 <ike709@github.com>
This commit is contained in:
ike709
2022-05-21 15:35:47 -05:00
committed by GitHub
parent 6cd83cc5f9
commit aee509ba41

View File

@@ -442,8 +442,8 @@ public sealed class WiresSystem : EntitySystem
return;
if (component.IsPanelOpen &&
_toolSystem.HasQuality(args.Used, "Cutting", tool) ||
_toolSystem.HasQuality(args.Used, "Pulsing", tool))
(_toolSystem.HasQuality(args.Used, "Cutting", tool) ||
_toolSystem.HasQuality(args.Used, "Pulsing", tool)))
{
if (EntityManager.TryGetComponent(args.User, out ActorComponent? actor))
{