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>
This commit is contained in:
parent
daf70ea67f
commit
5017b01938
@ -524,7 +524,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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user