Fixed starting nodes returning on refresh after being removed

This commit is contained in:
thepaperpilot 2021-08-20 21:42:11 -05:00
parent 3163b58ba6
commit fbe4f7883f

View file

@ -73,7 +73,7 @@ export function addLayer(layer: RawLayer, player?: Partial<PlayerData>): void {
buyables: getStartingBuyables(layer.buyables?.data), buyables: getStartingBuyables(layer.buyables?.data),
clickables: getStartingClickables(layer.clickables?.data), clickables: getStartingClickables(layer.clickables?.data),
challenges: getStartingChallenges(layer.challenges?.data), challenges: getStartingChallenges(layer.challenges?.data),
boards: getStartingBoards(layer.boards?.data), boards: player.layers[layer.id]?.boards || getStartingBoards(layer.boards?.data),
grids: {}, grids: {},
confirmRespecBuyables: false, confirmRespecBuyables: false,
...(layer.startData?.() || {}) ...(layer.startData?.() || {})