From 3845a5fd57b8dab66375894f83ad29d9e3e31381 Mon Sep 17 00:00:00 2001 From: Enea Guidi Date: Mon, 19 Sep 2022 22:43:00 +0200 Subject: [PATCH] fix(all): Fixes a coordinates related bug --- components/Automaton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Automaton.tsx b/components/Automaton.tsx index 9ea218c..0cacb43 100644 --- a/components/Automaton.tsx +++ b/components/Automaton.tsx @@ -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(); }