diff --git a/src/server/robot/path-materializer.ts b/src/server/robot/path-materializer.ts index 9dee705c..8a93ea23 100644 --- a/src/server/robot/path-materializer.ts +++ b/src/server/robot/path-materializer.ts @@ -262,7 +262,7 @@ function findShimmyLocation( // Vertical case CollisionType.VERTICAL: { const direction: [number, number] = directionToEdge(move.to); - const gridX: number = Math.floor(shimmyPos.y); + const gridX: number = Math.floor(shimmyPos.x); if (gridX === move.to.i) { const augmentX: number = shimmyPos.x + direction[0] * -axisShimmyAmount;