improve: don't update currency when infiniteResources is enabled

This commit is contained in:
Sainan 2024-05-05 12:09:09 +02:00
parent 392f63115e
commit 6798e09b50

View File

@ -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) {