Fix being able to access wires without opening the panel (#8335)
Co-authored-by: ike709 <ike709@github.com>
This commit is contained in:
@@ -442,8 +442,8 @@ public sealed class WiresSystem : EntitySystem
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (component.IsPanelOpen &&
|
if (component.IsPanelOpen &&
|
||||||
_toolSystem.HasQuality(args.Used, "Cutting", tool) ||
|
(_toolSystem.HasQuality(args.Used, "Cutting", tool) ||
|
||||||
_toolSystem.HasQuality(args.Used, "Pulsing", tool))
|
_toolSystem.HasQuality(args.Used, "Pulsing", tool)))
|
||||||
{
|
{
|
||||||
if (EntityManager.TryGetComponent(args.User, out ActorComponent? actor))
|
if (EntityManager.TryGetComponent(args.User, out ActorComponent? actor))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user