Fix SolutionAreaEffectSystem exception when the collection is modified.
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
#nullable enable
|
#nullable enable
|
||||||
|
using System.Linq;
|
||||||
using Content.Server.GameObjects.Components.Chemistry;
|
using Content.Server.GameObjects.Components.Chemistry;
|
||||||
using JetBrains.Annotations;
|
using JetBrains.Annotations;
|
||||||
using Robust.Shared.GameObjects;
|
using Robust.Shared.GameObjects;
|
||||||
@@ -10,7 +11,7 @@ namespace Content.Server.GameObjects.EntitySystems
|
|||||||
{
|
{
|
||||||
public override void Update(float frameTime)
|
public override void Update(float frameTime)
|
||||||
{
|
{
|
||||||
foreach (var inception in ComponentManager.EntityQuery<SolutionAreaEffectInceptionComponent>())
|
foreach (var inception in ComponentManager.EntityQuery<SolutionAreaEffectInceptionComponent>().ToArray())
|
||||||
{
|
{
|
||||||
inception.InceptionUpdate(frameTime);
|
inception.InceptionUpdate(frameTime);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user