fix: don't throw an error if questKey already exists #1003

Merged
OrdisPrime merged 2 commits from AMelonInsideLemon/SpaceNinjaServer:questkey-warn into main 2025-02-24 15:59:57 -08:00
Showing only changes of commit 1f6da504d6 - Show all commits

View File

@ -331,9 +331,8 @@ export const addItem = async (
if (key.chainStages) {
const key = addQuestKey(inventory, { ItemType: typeName });
if (key) {
if (!key) return { InventoryChanges: {} };
return { InventoryChanges: { QuestKeys: [key] } };
} else return { InventoryChanges: {} };
} else {
const key = { ItemType: typeName, ItemCount: quantity };