From fce3127d5c9278e8e4a8472891dfb4484cd852d1 Mon Sep 17 00:00:00 2001 From: qwerinope Date: Wed, 3 Sep 2025 21:32:52 +0200 Subject: [PATCH] fix getloot --- src/commands/getloot.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands/getloot.ts b/src/commands/getloot.ts index a6c169a..a63f98f 100644 --- a/src/commands/getloot.ts +++ b/src/commands/getloot.ts @@ -37,6 +37,7 @@ export default new Command('getloot', ['getloot', 'dig', 'loot'], 'chatter', asy for (const [item, amount] of Object.entries(itemDiff)) { if (userData.inventory[item]) userData.inventory[item] += amount; + else userData.inventory[item] = amount; }; const itemstrings: string[] = [`${gainedqbucks} qbucks`];