Fix cross-grid spreader behavior (#26346)

This commit is contained in:
Tayrtahn
2024-03-22 16:29:14 -04:00
committed by GitHub
parent f30ed8d860
commit 763d2bca9c

View File

@@ -215,7 +215,7 @@ public sealed class SpreaderSystem : EntitySystem
xformQuery.TryGetComponent(dock.DockedWith, out var dockedXform) && xformQuery.TryGetComponent(dock.DockedWith, out var dockedXform) &&
TryComp<MapGridComponent>(dockedXform.GridUid, out var dockedGrid)) 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. // If we're on a blocked tile work out which directions we can go.