]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix latejoins (#32093)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Thu, 12 Sep 2024 04:04:48 +0000 (14:04 +1000)
committerGitHub <noreply@github.com>
Thu, 12 Sep 2024 04:04:48 +0000 (14:04 +1000)
For realsies :)

Content.Server/Shuttles/Systems/ArrivalsSystem.cs

index 82a38f5f00fe518c5ed55a9fe6123cf5dc67a065..46d2cd69b91841ef71844ddaf6948b5ef44ec30f 100644 (file)
@@ -92,7 +92,7 @@ public sealed class ArrivalsSystem : EntitySystem
     {
         base.Initialize();
 
-        SubscribeLocalEvent<PlayerSpawningEvent>(HandlePlayerSpawning, before: new []{ typeof(ContainerSpawnPointSystem), typeof(SpawnPointSystem)});
+        SubscribeLocalEvent<PlayerSpawningEvent>(HandlePlayerSpawning, before: new []{ typeof(SpawnPointSystem)}, after: new [] { typeof(ContainerSpawnPointSystem)});
 
         SubscribeLocalEvent<StationArrivalsComponent, StationPostInitEvent>(OnStationPostInit);
 
@@ -335,8 +335,7 @@ public sealed class ArrivalsSystem : EntitySystem
         if (ev.SpawnResult != null)
             return;
 
-        if (ev.HumanoidCharacterProfile?.SpawnPriority != SpawnPriorityPreference.Arrivals)
-            return;
+        // We use arrivals as the default spawn so don't check for job prio.
 
         // Only works on latejoin even if enabled.
         if (!Enabled || _ticker.RunLevel != GameRunLevel.InRound)