From f03b74c227964ef4aa4144992f10126ce8b4427f Mon Sep 17 00:00:00 2001 From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Sun, 30 Oct 2022 19:10:31 +1300 Subject: [PATCH] Slight SnapToGrid tweak (#12274) --- Content.Server/Construction/Completions/SnapToGrid.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Content.Server/Construction/Completions/SnapToGrid.cs b/Content.Server/Construction/Completions/SnapToGrid.cs index 7d2c35a872..ec41b13988 100644 --- a/Content.Server/Construction/Completions/SnapToGrid.cs +++ b/Content.Server/Construction/Completions/SnapToGrid.cs @@ -13,7 +13,9 @@ namespace Content.Server.Construction.Completions public void PerformAction(EntityUid uid, EntityUid? userUid, IEntityManager entityManager) { var transform = entityManager.GetComponent(uid); - transform.Coordinates = transform.Coordinates.SnapToGrid(entityManager); + + if (!transform.Anchored) + transform.Coordinates = transform.Coordinates.SnapToGrid(entityManager); if (SouthRotation) {