Skip to content

Commit

Permalink
Merge branch 'master' into MercfabRecipes
Browse files Browse the repository at this point in the history
  • Loading branch information
blackknight954 authored Jan 7, 2025
2 parents 68b6b01 + b0ebcca commit cdf5638
Show file tree
Hide file tree
Showing 9 changed files with 322 additions and 177 deletions.
2 changes: 1 addition & 1 deletion Content.Server/Worldgen/Systems/LocalityLoaderSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ private void OnDebrisDespawn(EntityUid entity, SpaceDebrisComponent component, E
}

// Do not delete the grid, it is being deleted.
_linkedLifecycleGrid.UnparentPlayersFromGrid(entity, false);
_linkedLifecycleGrid.UnparentPlayersFromGrid(grid: entity, deleteGrid: false, ignoreLifeStage: true);
}
}
// Frontier
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ private void OnMasterRemoved(EntityUid uid, LinkedLifecycleGridParentComponent c
}

// Deletes a grid, reparenting every humanoid and player character that's on it.
public void UnparentPlayersFromGrid(EntityUid grid, bool deleteGrid)
public void UnparentPlayersFromGrid(EntityUid grid, bool deleteGrid, bool ignoreLifeStage = false)
{
if (MetaData(grid).EntityLifeStage >= EntityLifeStage.Terminating)
if (!ignoreLifeStage && MetaData(grid).EntityLifeStage >= EntityLifeStage.Terminating)
return;

var reparentEntities = GetEntitiesToReparent(grid);
Expand Down
14 changes: 14 additions & 0 deletions Resources/Changelog/Frontier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6268,3 +6268,17 @@ Entries:
them.
id: 5635
time: '2025-01-06T21:21:18.0000000+00:00'
- author: Tych0theSynth
changes:
- type: Add
message: 'Updated the SBB Tyne. '
id: 5636
time: '2025-01-07T15:34:09.0000000+00:00'
- author: GreaseMonk
changes:
- type: Fix
message: Fix player bodies despawning on debris
- type: Tweak
message: No longer possible to fly debris, wrecks, and salvage
id: 5637
time: '2025-01-07T16:01:29.0000000+00:00'
Loading

0 comments on commit cdf5638

Please sign in to comment.