Skip to content

Commit

Permalink
Fix prisoners spawning at latejoin cryopods (#743)
Browse files Browse the repository at this point in the history
  • Loading branch information
DebugOk authored Jan 31, 2024
1 parent a80ed20 commit 4414a65
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ private void OnSpawnPlayer(PlayerSpawningEvent args)
if (args.SpawnResult != null)
return;

// DeltaV - Prevent spawnpoint overrides from being ignored
if (args.DesiredSpawnPointType != null && args.DesiredSpawnPointType != SpawnPointType.Unset)
return;

var query = EntityQueryEnumerator<ContainerSpawnPointComponent, ContainerManagerComponent, TransformComponent>();
var possibleContainers = new List<Entity<ContainerSpawnPointComponent, ContainerManagerComponent, TransformComponent>>();

Expand Down

0 comments on commit 4414a65

Please sign in to comment.