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:
@@ -1,5 +1,6 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Content.Server.GameObjects.Components.MachineLinking;
|
using Content.Server.GameObjects.Components.MachineLinking;
|
||||||
|
using Content.Server.GameObjects.EntitySystems.Click;
|
||||||
using Robust.Server.Interfaces.Console;
|
using Robust.Server.Interfaces.Console;
|
||||||
using Robust.Server.Interfaces.Player;
|
using Robust.Server.Interfaces.Player;
|
||||||
using Robust.Shared.GameObjects;
|
using Robust.Shared.GameObjects;
|
||||||
@@ -42,7 +43,7 @@ namespace Content.Server.GameObjects.EntitySystems
|
|||||||
if (_transmitters.Count == 0)
|
if (_transmitters.Count == 0)
|
||||||
{
|
{
|
||||||
CommandBinds.Builder
|
CommandBinds.Builder
|
||||||
.Bind(EngineKeyFunctions.Use, new PointerInputCmdHandler(HandleUse))
|
.BindBefore(EngineKeyFunctions.Use, new PointerInputCmdHandler(HandleUse), typeof(InteractionSystem))
|
||||||
.Register<SignalLinkerSystem>();
|
.Register<SignalLinkerSystem>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user