From e2bd970ff41c9a916844a16fbf9d9056009faa30 Mon Sep 17 00:00:00 2001 From: FN Date: Mon, 13 May 2024 05:56:00 +0700 Subject: [PATCH] Fixed stack overflow --- Content.Server/Shuttles/Systems/ShuttleConsoleSystem.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Content.Server/Shuttles/Systems/ShuttleConsoleSystem.cs b/Content.Server/Shuttles/Systems/ShuttleConsoleSystem.cs index bb4a1ee962f..efea43b2942 100644 --- a/Content.Server/Shuttles/Systems/ShuttleConsoleSystem.cs +++ b/Content.Server/Shuttles/Systems/ShuttleConsoleSystem.cs @@ -373,9 +373,11 @@ public void ClearPilots(ShuttleConsoleComponent component) RemovePilot(pilot, pilotComponent); } + // Corvax-Frontier: Commented to fix stack overflow + // Frontier - Adds EMP functionality - PR 526 // This makes the Shuttle Console kick pilots like its removed, to make sure EMP in effect. - var disabled = EntityQueryEnumerator(); + /*var disabled = EntityQueryEnumerator(); while (disabled.MoveNext(out var uid, out _, out var comp)) { if (comp.TimeoutFromEmp <= _timing.CurTime) @@ -386,7 +388,7 @@ public void ClearPilots(ShuttleConsoleComponent component) } else comp.MainBreakerEnabled = true; - } + }*/ } ///