Fix signallink command not working (#2534)

The InteractionSystem always returns true, so this change runs the SignalLinkerSystem CommandBind before InteractionSystem
This commit is contained in:
ShadowCommander
2020-11-10 00:30:19 -08:00
committed by GitHub
parent 294985a7c6
commit e567e9fec1

View File

@@ -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<SignalLinkerSystem>();
}