From e567e9fec109bdd3402892684299fb0c1cbcc179 Mon Sep 17 00:00:00 2001 From: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com> Date: Tue, 10 Nov 2020 00:30:19 -0800 Subject: [PATCH] Fix signallink command not working (#2534) The InteractionSystem always returns true, so this change runs the SignalLinkerSystem CommandBind before InteractionSystem --- Content.Server/GameObjects/EntitySystems/SignalLinkerSystem.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Server/GameObjects/EntitySystems/SignalLinkerSystem.cs b/Content.Server/GameObjects/EntitySystems/SignalLinkerSystem.cs index 57406584c7..30979a3e5d 100644 --- a/Content.Server/GameObjects/EntitySystems/SignalLinkerSystem.cs +++ b/Content.Server/GameObjects/EntitySystems/SignalLinkerSystem.cs @@ -1,5 +1,6 @@ using System.Collections.Generic; using Content.Server.GameObjects.Components.MachineLinking; +using Content.Server.GameObjects.EntitySystems.Click; using Robust.Server.Interfaces.Console; using Robust.Server.Interfaces.Player; using Robust.Shared.GameObjects; @@ -42,7 +43,7 @@ namespace Content.Server.GameObjects.EntitySystems if (_transmitters.Count == 0) { CommandBinds.Builder - .Bind(EngineKeyFunctions.Use, new PointerInputCmdHandler(HandleUse)) + .BindBefore(EngineKeyFunctions.Use, new PointerInputCmdHandler(HandleUse), typeof(InteractionSystem)) .Register(); }