From 47b2aee91a963a9b7fa829b7b4280258d6b3e9c0 Mon Sep 17 00:00:00 2001 From: Dev Date: Fri, 20 Sep 2024 11:07:27 +0100 Subject: [PATCH] Updated `adjustExtracts()` to push scav extracts into existing exits instead of overwriting --- project/src/services/LocationLifecycleService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/src/services/LocationLifecycleService.ts b/project/src/services/LocationLifecycleService.ts index a94ad742..1b8d6406 100644 --- a/project/src/services/LocationLifecycleService.ts +++ b/project/src/services/LocationLifecycleService.ts @@ -129,10 +129,10 @@ export class LocationLifecycleService { } // 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) { // Scav extracts found, use them - locationData.exits = scavExtracts; + locationData.exits.push(...scavExtracts); } } }