0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-13 09:50:43 -05:00

Prevent duplicate items spawning in static containers

This commit is contained in:
Dev 2024-01-07 20:17:07 +00:00
parent ed82e9ed2f
commit 6231a56fea

View File

@ -429,7 +429,7 @@ export class LocationGenerator
itemCountToAdd, itemCountToAdd,
this.locationConfig.allowDuplicateItemsInStaticContainers, this.locationConfig.allowDuplicateItemsInStaticContainers,
locklist, locklist,
); ).filter(x => !tplsForced.includes(x));
// Add forced loot to chosen item pool // Add forced loot to chosen item pool
const tplsToAddToContainer = tplsForced.concat(chosenTpls); const tplsToAddToContainer = tplsForced.concat(chosenTpls);