Fix spawnpref (#31892)

This commit is contained in:
metalgearsloth
2024-09-10 05:39:15 +10:00
committed by GitHub
parent ec4d59f608
commit 1088113bf8
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;