Skip to content

Commit

Permalink
fix(all): Fixes a coordinates related bug
Browse files Browse the repository at this point in the history
  • Loading branch information
its-hmny committed Sep 19, 2022
1 parent 9dfb0ba commit 3845a5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Automaton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const Automaton = () => {
// Initializes the cartesian plan coords
const coords: Coords = [x - offset, y - offset, z - offset];
// Creates linearized index to access the ageMatrix that act both as key
const id = Coords2Index(coords, settings.dimension);
const id = Coords2Index([x, y, z], settings.dimension);
// Adds the cell to the render list
cells.push(<Cell key={id} {...{ simulator, coords, id }} />);
}
Expand Down

0 comments on commit 3845a5f

Please sign in to comment.