mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 09:50:43 -05:00
Updated adjustExtracts()
to push scav extracts into existing exits instead of overwriting
This commit is contained in:
parent
73eae5bd94
commit
47b2aee91a
@ -129,10 +129,10 @@ export class LocationLifecycleService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Find only scav extracts and overwrite existing exits with them
|
// Find only scav extracts and overwrite existing exits with them
|
||||||
const scavExtracts = mapExtracts.filter((extract) => ["scav", "coop"].includes(extract.Side.toLowerCase()));
|
const scavExtracts = mapExtracts.filter((extract) => ["scav"].includes(extract.Side.toLowerCase()));
|
||||||
if (scavExtracts.length > 0) {
|
if (scavExtracts.length > 0) {
|
||||||
// Scav extracts found, use them
|
// Scav extracts found, use them
|
||||||
locationData.exits = scavExtracts;
|
locationData.exits.push(...scavExtracts);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user