From 86895f9735856c5c4a8dc6d5e39b7adc1b7ad442 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Sat, 11 Mar 2023 12:45:48 +1100 Subject: [PATCH] Don't preload content maps in tests (#14577) --- Content.IntegrationTests/PoolManager.cs | 3 +++ Content.Server/Cargo/Systems/CargoSystem.Shuttle.cs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Content.IntegrationTests/PoolManager.cs b/Content.IntegrationTests/PoolManager.cs index 10dd8dca5f..695aae7cba 100644 --- a/Content.IntegrationTests/PoolManager.cs +++ b/Content.IntegrationTests/PoolManager.cs @@ -51,6 +51,9 @@ public static class PoolManager (CCVars.SysWinTickPeriod.Name, "0", true), (CCVars.ThreadParallelCount.Name, "1", true), (CCVars.GameRoleTimers.Name, "false", false), + (CCVars.CargoShuttles.Name, "false", false), + (CCVars.EmergencyShuttleEnabled.Name, "false", false), + (CCVars.ProcgenPreload.Name, "false", false), }; private static int PairId; diff --git a/Content.Server/Cargo/Systems/CargoSystem.Shuttle.cs b/Content.Server/Cargo/Systems/CargoSystem.Shuttle.cs index 24c52d3fac..fbf7bda83b 100644 --- a/Content.Server/Cargo/Systems/CargoSystem.Shuttle.cs +++ b/Content.Server/Cargo/Systems/CargoSystem.Shuttle.cs @@ -265,6 +265,9 @@ public sealed partial class CargoSystem private void OnCargoOrderStartup(EntityUid uid, StationCargoOrderDatabaseComponent component, ComponentStartup args) { + if (!_enabled) + return; + // Stations get created first but if any are added at runtime then do this. AddShuttle(component); }