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:
parent
ed82e9ed2f
commit
6231a56fea
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user