From 7c2ec2d45992069ed015b3a7438ee8fc5faf4b28 Mon Sep 17 00:00:00 2001 From: blaumeise20 <62756994+blaumeise20@users.noreply.github.com> Date: Fri, 12 May 2023 07:59:01 +0200 Subject: [PATCH] Finally fix stupid reset bug --- src/core/grid/cellGrid.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/grid/cellGrid.ts b/src/core/grid/cellGrid.ts index 640e3c7..651adfd 100644 --- a/src/core/grid/cellGrid.ts +++ b/src/core/grid/cellGrid.ts @@ -104,6 +104,9 @@ export class CellGrid { if (cell) grid.loadCell(Pos(x, y), cell.type, cell.direction); } } + for (const [pos, tile] of this.tiles.entries()) { + grid.tiles.set(pos, tile); + } return grid; }