]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix cross-grid spreader behavior (#26346)
authorTayrtahn <tayrtahn@gmail.com>
Fri, 22 Mar 2024 20:29:14 +0000 (16:29 -0400)
committerGitHub <noreply@github.com>
Fri, 22 Mar 2024 20:29:14 +0000 (16:29 -0400)
Content.Server/Spreader/SpreaderSystem.cs

index 269d35d12ffc531da6d0ada0f2ca7c37d13efef4..89951718236aae6f46adedc35810083c10d60ecd 100644 (file)
@@ -215,7 +215,7 @@ public sealed class SpreaderSystem : EntitySystem
                 xformQuery.TryGetComponent(dock.DockedWith, out var dockedXform) &&
                 TryComp<MapGridComponent>(dockedXform.GridUid, out var dockedGrid))
             {
-                neighborTiles.Add((ent.Value, dockedGrid, _map.CoordinatesToTile(ent.Value, dockedGrid, dockedXform.Coordinates), xform.LocalRotation.ToAtmosDirection(), dockedXform.LocalRotation.ToAtmosDirection()));
+                neighborTiles.Add((dockedXform.GridUid.Value, dockedGrid, _map.CoordinatesToTile(dockedXform.GridUid.Value, dockedGrid, dockedXform.Coordinates), xform.LocalRotation.ToAtmosDirection(), dockedXform.LocalRotation.ToAtmosDirection()));
             }
 
             // If we're on a blocked tile work out which directions we can go.