From 6798e09b5077c0138eb58bb93d276fc449862dcb Mon Sep 17 00:00:00 2001 From: Sainan Date: Sun, 5 May 2024 12:09:09 +0200 Subject: [PATCH] improve: don't update currency when infiniteResources is enabled --- src/services/inventoryService.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/services/inventoryService.ts b/src/services/inventoryService.ts index aac5a034..8e3a9d7a 100644 --- a/src/services/inventoryService.ts +++ b/src/services/inventoryService.ts @@ -93,6 +93,10 @@ export const updateSlots = async (accountId: string, slotName: SlotNames, slotAm }; export const updateCurrency = async (price: number, usePremium: boolean, accountId: string) => { + if (config.infiniteResources) { + return {}; + } + const inventory = await getInventory(accountId); if (usePremium) {