From fbe4f7883f41d7def6f6f99bac585a6968014ece Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Fri, 20 Aug 2021 21:42:11 -0500 Subject: [PATCH] Fixed starting nodes returning on refresh after being removed --- src/game/layers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/layers.ts b/src/game/layers.ts index d20d094..d0ff4e9 100644 --- a/src/game/layers.ts +++ b/src/game/layers.ts @@ -73,7 +73,7 @@ export function addLayer(layer: RawLayer, player?: Partial): void { buyables: getStartingBuyables(layer.buyables?.data), clickables: getStartingClickables(layer.clickables?.data), challenges: getStartingChallenges(layer.challenges?.data), - boards: getStartingBoards(layer.boards?.data), + boards: player.layers[layer.id]?.boards || getStartingBoards(layer.boards?.data), grids: {}, confirmRespecBuyables: false, ...(layer.startData?.() || {})