From a4a3c8c89a2357ba386bd710e580497c29e6bf34 Mon Sep 17 00:00:00 2001 From: Archangel Date: Thu, 15 Aug 2024 18:03:12 +0000 Subject: [PATCH] Skip items that are listed in the custom blacklist from being set as sellable (!396) Fixes issue #747 Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/396 Co-authored-by: Archangel Co-committed-by: Archangel (cherry picked from commit 5017b019388adfddca60856e4596ee90133a3098) --- project/src/controllers/GameController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/controllers/GameController.ts b/project/src/controllers/GameController.ts index 2c9ddefa..f4c504fa 100644 --- a/project/src/controllers/GameController.ts +++ b/project/src/controllers/GameController.ts @@ -517,7 +517,7 @@ export class GameController { protected setAllDbItemsAsSellableOnFlea(): void { const dbItems = Object.values(this.databaseService.getItems()); for (const item of dbItems) { - if (item._type === "Item" && !item._props?.CanSellOnRagfair) { + if (item._type === "Item" && !item._props?.CanSellOnRagfair && !this.ragfairConfig.dynamic.blacklist.custom.includes(item._id)) { item._props.CanSellOnRagfair = true; } }