Removes obsolete AnchorEntity() functions (#28613)

Obsolete anchor entity functions

Co-authored-by: plykiya <plykiya@protonmail.com>
This commit is contained in:
Plykiya 2024-06-30 07:32:48 -07:00 committed by null
parent 6df609436b
commit fe1571b3aa
No known key found for this signature in database
GPG Key ID: 212F05528FD678BE
2 changed files with 2 additions and 2 deletions

View File

@ -810,7 +810,7 @@ public sealed partial class BiomeSystem : SharedBiomeSystem
// 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);

View File

@ -177,7 +177,7 @@ public sealed partial class DungeonSystem
// 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);
}