From 77cd315dcba2d2be7a78cb12a89a8b470eeaac30 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Wed, 21 Dec 2022 22:54:01 -0600 Subject: [PATCH] Fix hotkey in factory --- src/data/layers/factory.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data/layers/factory.tsx b/src/data/layers/factory.tsx index 21d357c..114f715 100644 --- a/src/data/layers/factory.tsx +++ b/src/data/layers/factory.tsx @@ -7,7 +7,7 @@ import Spacer from "components/layout/Spacer.vue"; import { jsx } from "features/feature"; import { globalBus } from "game/events"; import { createLayer } from "game/layers"; -import { Persistent, persistent, State } from "game/persistence"; +import { noPersist, Persistent, persistent, State } from "game/persistence"; import Decimal, { format, formatWhole } from "util/bignum"; import { Direction } from "util/common"; import { computed, ComputedRef, reactive, ref, watchEffect } from "vue"; @@ -285,7 +285,7 @@ const factory = createLayer(id, () => { onPress() { compSelected.value = comp; }, - enabled: main.days[day - 1].opened + enabled: noPersist(main.days[day - 1].opened) })); return acc; }, {} as Record);