Prevent relay recursion (#12597)
Fixes https://github.com/space-wizards/space-station-14/issues/12562
This commit is contained in:
@@ -8,6 +8,7 @@ using Robust.Shared.Input.Binding;
|
||||
using Robust.Shared.Players;
|
||||
using Robust.Shared.Serialization;
|
||||
using Robust.Shared.Timing;
|
||||
using Robust.Shared.Utility;
|
||||
|
||||
namespace Content.Shared.Movement.Systems
|
||||
{
|
||||
@@ -190,6 +191,7 @@ namespace Content.Shared.Movement.Systems
|
||||
|
||||
if (relayMover.RelayEntity == null) return;
|
||||
|
||||
DebugTools.Assert(relayMover.RelayEntity != entity);
|
||||
HandleDirChange(relayMover.RelayEntity.Value, dir, subTick, state);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user