Reapply "Fix spawnpref" (#32018) (#32058)

This reverts commit 119dd610fa.
This commit is contained in:
metalgearsloth
2024-09-11 14:23:24 +10:00
committed by GitHub
parent c13e37e86f
commit 635e800220
2 changed files with 15 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ using Content.Shared.DeviceNetwork;
using Content.Shared.Mobs.Components;
using Content.Shared.Movement.Components;
using Content.Shared.Parallax.Biomes;
using Content.Shared.Preferences;
using Content.Shared.Salvage;
using Content.Shared.Shuttles.Components;
using Content.Shared.Tiles;
@@ -334,6 +335,9 @@ public sealed class ArrivalsSystem : EntitySystem
if (ev.SpawnResult != null)
return;
if (ev.HumanoidCharacterProfile?.SpawnPriority != SpawnPriorityPreference.Arrivals)
return;
// Only works on latejoin even if enabled.
if (!Enabled || _ticker.RunLevel != GameRunLevel.InRound)
return;