mirror of
https://github.com/Lawin0129/LawinServer.git
synced 2026-01-13 10:52:23 +01:00
Add item check for slot item in collection book
This commit is contained in:
11
index.js
11
index.js
@@ -3323,6 +3323,17 @@ express.post("/fortnite/api/game/v2/profile/*/client/SlotItemInCollectionBook",
|
|||||||
"profileCommandRevision": collection_book_profile.commandRevision || 0,
|
"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];
|
collection_book_profile.items[req.body.itemId] = profile.items[req.body.itemId];
|
||||||
|
|
||||||
delete profile.items[req.body.itemId];
|
delete profile.items[req.body.itemId];
|
||||||
|
|||||||
Reference in New Issue
Block a user