fix: don't throw an error if questKey already exists #1003
@ -331,9 +331,8 @@ export const addItem = async (
|
||||
|
||||
if (key.chainStages) {
|
||||
const key = addQuestKey(inventory, { ItemType: typeName });
|
||||
if (key) {
|
||||
return { InventoryChanges: { QuestKeys: [key] } };
|
||||
} else return { InventoryChanges: {} };
|
||||
if (!key) return { InventoryChanges: {} };
|
||||
return { InventoryChanges: { QuestKeys: [key] } };
|
||||
} else {
|
||||
const key = { ItemType: typeName, ItemCount: quantity };
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user