Skip to content

Commit

Permalink
Removes obsolete AnchorEntity() functions (space-wizards#28613)
Browse files Browse the repository at this point in the history
Obsolete anchor entity functions

Co-authored-by: plykiya <[email protected]>
  • Loading branch information
Plykiya and plykiya committed Jun 30, 2024
1 parent af1acf6 commit f6bb105
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Content.Server/Parallax/BiomeSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ private void LoadChunk(
// At least for now unless we do lookups or smth, only work with anchoring.
if (_xformQuery.TryGetComponent(ent, out var xform) && !xform.Anchored)
{
_transform.AnchorEntity(ent, xform, gridUid, grid, indices);
_transform.AnchorEntity((ent, xform), (gridUid, grid), indices);
}

loadedEntities.Add(ent, indices);
Expand Down
2 changes: 1 addition & 1 deletion Content.Server/Procedural/DungeonSystem.Rooms.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public void SpawnRoom(

// If the templated entity was anchored then anchor us too.
if (anchored && !childXform.Anchored)
_transform.AnchorEntity(ent, childXform, grid);
_transform.AnchorEntity((ent, childXform), (gridUid, grid));
else if (!anchored && childXform.Anchored)
_transform.Unanchor(ent, childXform);
}
Expand Down

0 comments on commit f6bb105

Please sign in to comment.