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
Showing only changes of commit 9eff1b9032 - Show all commits

View File

@ -1525,7 +1525,8 @@ export const applyClientEquipmentUpdates = (
gearArray.forEach(({ ItemId, XP, InfestationDate }) => {
const item = category.id(fromOid(ItemId));
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) {