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 <jesse@archangel.wtf>
Co-committed-by: Archangel <jesse@archangel.wtf>
(cherry picked from commit 5017b01938)
This commit is contained in:
Archangel 2024-08-15 18:03:12 +00:00 committed by Dev
parent 9c2333c351
commit a4a3c8c89a

View File

@ -517,7 +517,7 @@ export class GameController {
protected setAllDbItemsAsSellableOnFlea(): void { protected setAllDbItemsAsSellableOnFlea(): void {
const dbItems = Object.values(this.databaseService.getItems()); const dbItems = Object.values(this.databaseService.getItems());
for (const item of dbItems) { 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; item._props.CanSellOnRagfair = true;
} }
} }