]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Purges uses of TransformComponent.Coordinates.set (#34937)
authorTemporalOroboros <TemporalOroboros@gmail.com>
Sat, 25 Oct 2025 16:54:12 +0000 (09:54 -0700)
committerGitHub <noreply@github.com>
Sat, 25 Oct 2025 16:54:12 +0000 (16:54 +0000)
* ECS-TransformComponent-Coordinates
Moves over all uses of the setter to use SharedTransformSystem.SetCoordinates instead

* revert unrelated change

---------

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
Content.Shared/Buckle/SharedBuckleSystem.Buckle.cs

index 7dd4ea4d1155299148e9c307a10543f4d985b345..75680089fbf2731edd58f269dee3556218ab4887 100644 (file)
@@ -467,7 +467,7 @@ public abstract partial class SharedBuckleSystem
             // TODO: This is doing 4 moveevents this is why I left the warning in, if you're going to remove it make it only do 1 moveevent.
             if (strap.Comp.BuckleOffset != Vector2.Zero)
             {
-                buckleXform.Coordinates = oldBuckledXform.Coordinates.Offset(strap.Comp.BuckleOffset);
+                _transform.SetCoordinates(buckle, buckleXform, oldBuckledXform.Coordinates.Offset(strap.Comp.BuckleOffset));
             }
         }