]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Changed spawn priority to arrivals -> containers -> points. (#24476)
authorKrunklehorn <42424291+Krunklehorn@users.noreply.github.com>
Thu, 25 Jan 2024 00:48:58 +0000 (19:48 -0500)
committerGitHub <noreply@github.com>
Thu, 25 Jan 2024 00:48:58 +0000 (17:48 -0700)
Content.Server/Shuttles/Systems/ArrivalsSystem.cs
Content.Server/Spawners/EntitySystems/ContainerSpawnPointSystem.cs
Content.Server/Spawners/EntitySystems/SpawnPointSystem.cs

index b257bb5b96431d6f9e6704411ac2e8eaeea049a3..41f455cea1fa843f025e1932347b8373fb9f33d3 100644 (file)
@@ -81,7 +81,7 @@ public sealed class ArrivalsSystem : EntitySystem
     {
         base.Initialize();
 
-        SubscribeLocalEvent<PlayerSpawningEvent>(OnPlayerSpawn, before: new[] { typeof(SpawnPointSystem) });
+        SubscribeLocalEvent<PlayerSpawningEvent>(OnPlayerSpawn, before: new[] { typeof(SpawnPointSystem), typeof(ContainerSpawnPointSystem) });
         SubscribeLocalEvent<StationArrivalsComponent, ComponentStartup>(OnArrivalsStartup);
 
         SubscribeLocalEvent<ArrivalsShuttleComponent, ComponentStartup>(OnShuttleStartup);
index 15c4031d585ac69f5d0b3441d06ce851644afb7c..8e1b6273f6a348510b84a918dde40d3e28ff2414 100644 (file)
@@ -18,7 +18,7 @@ public sealed class ContainerSpawnPointSystem : EntitySystem
 
     public override void Initialize()
     {
-        SubscribeLocalEvent<PlayerSpawningEvent>(OnSpawnPlayer, before: new[] { typeof(SpawnPointSystem), typeof(ArrivalsSystem) });
+        SubscribeLocalEvent<PlayerSpawningEvent>(OnSpawnPlayer, before: new[] { typeof(SpawnPointSystem) }, after: new[] { typeof(ArrivalsSystem) });
     }
 
     private void OnSpawnPlayer(PlayerSpawningEvent args)
index c96e3c5c385502ce5a771977533c9661a247d7ce..a030e790c084b14929e6ae374182f238b1c66af9 100644 (file)
@@ -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<PlayerSpawningEvent>(OnSpawnPlayer);
+        SubscribeLocalEvent<PlayerSpawningEvent>(OnSpawnPlayer, after: new[] { typeof(ContainerSpawnPointSystem), typeof(ArrivalsSystem) });
     }
 
     private void OnSpawnPlayer(PlayerSpawningEvent args)