Fix pulling lerping (#4550)

This commit is contained in:
metalgearsloth
2021-09-02 12:35:16 +10:00
committed by GitHub
parent 744b4e5ce6
commit 5ade8c2695
3 changed files with 31 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using Content.Shared.MobState;
using Content.Shared.Movement.Components;
using Robust.Shared.Containers;
@@ -49,7 +50,7 @@ namespace Content.Shared.Movement.EntitySystems
if (owner != null && session != null)
{
foreach (var comp in owner.GetAllComponents<IRelayMoveInput>())
foreach (var comp in owner.GetAllComponents<IRelayMoveInput>().ToArray())
{
comp.MoveInputPressed(session);
}