From: Krunklehorn <42424291+Krunklehorn@users.noreply.github.com> Date: Thu, 25 Jan 2024 00:48:58 +0000 (-0500) Subject: Changed spawn priority to arrivals -> containers -> points. (#24476) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=00c83844acab389edb896ecd1df7d7c0c68e0134;p=space-station-14.git Changed spawn priority to arrivals -> containers -> points. (#24476) --- 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)