chore: don't fail missionInventoryUpdate on unknown items #2144

Merged
Sainan merged 1 commits from skip-unknown into main 2025-06-11 02:32:51 -07:00

View File

@ -1525,7 +1525,8 @@ export const applyClientEquipmentUpdates = (
gearArray.forEach(({ ItemId, XP, InfestationDate }) => { gearArray.forEach(({ ItemId, XP, InfestationDate }) => {
const item = category.id(fromOid(ItemId)); const item = category.id(fromOid(ItemId));
if (!item) { if (!item) {
throw new Error(`No item with id ${fromOid(ItemId)} in ${categoryName}`); logger.warn(`Skipping unknown ${categoryName} item: id ${fromOid(ItemId)} not found`);
return;
} }
if (XP) { if (XP) {