Removes obsolete AnchorEntity() functions (#28613)
Obsolete anchor entity functions Co-authored-by: plykiya <plykiya@protonmail.com>
This commit is contained in:
@@ -810,7 +810,7 @@ public sealed partial class BiomeSystem : SharedBiomeSystem
|
|||||||
// At least for now unless we do lookups or smth, only work with anchoring.
|
// At least for now unless we do lookups or smth, only work with anchoring.
|
||||||
if (_xformQuery.TryGetComponent(ent, out var xform) && !xform.Anchored)
|
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);
|
loadedEntities.Add(ent, indices);
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ public sealed partial class DungeonSystem
|
|||||||
|
|
||||||
// If the templated entity was anchored then anchor us too.
|
// If the templated entity was anchored then anchor us too.
|
||||||
if (anchored && !childXform.Anchored)
|
if (anchored && !childXform.Anchored)
|
||||||
_transform.AnchorEntity(ent, childXform, grid);
|
_transform.AnchorEntity((ent, childXform), (gridUid, grid));
|
||||||
else if (!anchored && childXform.Anchored)
|
else if (!anchored && childXform.Anchored)
|
||||||
_transform.Unanchor(ent, childXform);
|
_transform.Unanchor(ent, childXform);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user