]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Removes obsolete AnchorEntity() functions (#28613)
authorPlykiya <58439124+Plykiya@users.noreply.github.com>
Sun, 30 Jun 2024 14:32:48 +0000 (07:32 -0700)
committerGitHub <noreply@github.com>
Sun, 30 Jun 2024 14:32:48 +0000 (00:32 +1000)
Obsolete anchor entity functions

Co-authored-by: plykiya <plykiya@protonmail.com>
Content.Server/Parallax/BiomeSystem.cs
Content.Server/Procedural/DungeonSystem.Rooms.cs

index ec780d1f99c4bfce3339bed97a3bc01c6fe3a82e..7e854e8bbfb7de931f2eb4838528ca6805e11d6f 100644 (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);
index 5b4de34906e6cbab57172d9644238dacc997bf09..ddd4a4732f8e2d466db1ea62b101860683cce446 100644 (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);
         }