From: DrSmugleaf Date: Wed, 3 Jan 2024 07:57:28 +0000 (-0800) Subject: Fix another error on round restart when terminating spreaders (#23201) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=bc304a3127af316a92afef4c24eb35b7ebc98272;p=space-station-14.git Fix another error on round restart when terminating spreaders (#23201) Co-authored-by: metalgearsloth --- diff --git a/Content.Server/Spreader/SpreaderSystem.cs b/Content.Server/Spreader/SpreaderSystem.cs index 545d2cf3f1..ad3033a14b 100644 --- a/Content.Server/Spreader/SpreaderSystem.cs +++ b/Content.Server/Spreader/SpreaderSystem.cs @@ -70,7 +70,8 @@ public sealed class SpreaderSystem : EntitySystem foreach (var neighbor in neighbors) { - EnsureComp(neighbor); + if (!TerminatingOrDeleted(neighbor)) + EnsureComp(neighbor); } }