From 1633935fb85944404b2da804c66bfbe8dcd0798d Mon Sep 17 00:00:00 2001 From: Lawin0129 Date: Thu, 25 Nov 2021 20:15:30 +0000 Subject: [PATCH] Add item check for slot item in collection book --- index.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/index.js b/index.js index 818da87..ae46ad0 100644 --- a/index.js +++ b/index.js @@ -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];