Prevent relay recursion (#12597)

Fixes https://github.com/space-wizards/space-station-14/issues/12562
This commit is contained in:
Leon Friedrich
2022-11-15 13:45:25 +13:00
committed by GitHub
parent c9563e6c38
commit 0986bfa7be
3 changed files with 11 additions and 1 deletions

View File

@@ -54,7 +54,7 @@ public sealed class CardboardBoxSystem : SharedCardboardBoxSystem
foreach (var mover in mobMover)
{
//Set the movement relay for the box as the first mob
if (component.Mover == null && args.Contents.Contains(mover))
if (component.Mover == null)
{
var relay = EnsureComp<RelayInputMoverComponent>(mover);
_mover.SetRelay(mover, uid, relay);