From 00c83844acab389edb896ecd1df7d7c0c68e0134 Mon Sep 17 00:00:00 2001 From: Krunklehorn <42424291+Krunklehorn@users.noreply.github.com> Date: Wed, 24 Jan 2024 19:48:58 -0500 Subject: [PATCH] Changed spawn priority to arrivals -> containers -> points. (#24476) --- Content.Server/Shuttles/Systems/ArrivalsSystem.cs | 2 +- .../Spawners/EntitySystems/ContainerSpawnPointSystem.cs | 2 +- Content.Server/Spawners/EntitySystems/SpawnPointSystem.cs | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Content.Server/Shuttles/Systems/ArrivalsSystem.cs b/Content.Server/Shuttles/Systems/ArrivalsSystem.cs index b257bb5b96..41f455cea1 100644 --- a/Content.Server/Shuttles/Systems/ArrivalsSystem.cs +++ b/Content.Server/Shuttles/Systems/ArrivalsSystem.cs @@ -81,7 +81,7 @@ public sealed class ArrivalsSystem : EntitySystem { base.Initialize(); - SubscribeLocalEvent(OnPlayerSpawn, before: new[] { typeof(SpawnPointSystem) }); + SubscribeLocalEvent(OnPlayerSpawn, before: new[] { typeof(SpawnPointSystem), typeof(ContainerSpawnPointSystem) }); SubscribeLocalEvent(OnArrivalsStartup); SubscribeLocalEvent(OnShuttleStartup); diff --git a/Content.Server/Spawners/EntitySystems/ContainerSpawnPointSystem.cs b/Content.Server/Spawners/EntitySystems/ContainerSpawnPointSystem.cs index 15c4031d58..8e1b6273f6 100644 --- a/Content.Server/Spawners/EntitySystems/ContainerSpawnPointSystem.cs +++ b/Content.Server/Spawners/EntitySystems/ContainerSpawnPointSystem.cs @@ -18,7 +18,7 @@ public sealed class ContainerSpawnPointSystem : EntitySystem public override void Initialize() { - SubscribeLocalEvent(OnSpawnPlayer, before: new[] { typeof(SpawnPointSystem), typeof(ArrivalsSystem) }); + SubscribeLocalEvent(OnSpawnPlayer, before: new[] { typeof(SpawnPointSystem) }, after: new[] { typeof(ArrivalsSystem) }); } private void OnSpawnPlayer(PlayerSpawningEvent args) diff --git a/Content.Server/Spawners/EntitySystems/SpawnPointSystem.cs b/Content.Server/Spawners/EntitySystems/SpawnPointSystem.cs index c96e3c5c38..a030e790c0 100644 --- a/Content.Server/Spawners/EntitySystems/SpawnPointSystem.cs +++ b/Content.Server/Spawners/EntitySystems/SpawnPointSystem.cs @@ -1,4 +1,5 @@ using Content.Server.GameTicking; +using Content.Server.Shuttles.Systems; using Content.Server.Spawners.Components; using Content.Server.Station.Systems; using Robust.Shared.Map; @@ -15,7 +16,7 @@ public sealed class SpawnPointSystem : EntitySystem public override void Initialize() { - SubscribeLocalEvent(OnSpawnPlayer); + SubscribeLocalEvent(OnSpawnPlayer, after: new[] { typeof(ContainerSpawnPointSystem), typeof(ArrivalsSystem) }); } private void OnSpawnPlayer(PlayerSpawningEvent args)