Add item check for slot item in collection book

This commit is contained in:
Lawin0129
2021-11-25 20:15:30 +00:00
parent a3f4616e60
commit 1633935fb8

View File

@@ -3323,6 +3323,17 @@ express.post("/fortnite/api/game/v2/profile/*/client/SlotItemInCollectionBook",
"profileCommandRevision": collection_book_profile.commandRevision || 0,
})
for (var key in collection_book_profile.items) {
if (profile.items[req.body.itemId].templateId.toLowerCase() == collection_book_profile.items[key].templateId.toLowerCase()) {
delete collection_book_profile.items[key];
ApplyProfileChanges.push({
"changeType": "itemRemoved",
"itemId": key
})
}
}
collection_book_profile.items[req.body.itemId] = profile.items[req.body.itemId];
delete profile.items[req.body.itemId];