Skip to content

Commit

Permalink
Fix Arrivals Not Respecting Force Spawn
Browse files Browse the repository at this point in the history
  • Loading branch information
VMSolidus committed Oct 20, 2024
1 parent 5e575d8 commit 8dd91f7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Content.Server/Shuttles/Systems/ArrivalsSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
using Content.Shared.Mobs.Components;
using Content.Shared.Movement.Components;
using Content.Shared.Parallax.Biomes;
using Content.Shared.Roles;
using Content.Shared.Salvage;
using Content.Shared.Shuttles.Components;
using Content.Shared.Tiles;
Expand Down Expand Up @@ -311,6 +312,12 @@ public void HandlePlayerSpawning(PlayerSpawningEvent ev)
if (!Enabled || _ticker.RunLevel != GameRunLevel.InRound)
return;

if (ev.Job is not null
&& ev.Job.Prototype is not null
&& _protoManager.Index<JobPrototype>(ev.Job.Prototype.Value.Id).AlwaysUseSpawner)
return;


if (!HasComp<StationArrivalsComponent>(ev.Station))
return;

Expand Down

0 comments on commit 8dd91f7

Please sign in to comment.