From 218c720cdbe2e6bf3749df50da8f9104a3b50b01 Mon Sep 17 00:00:00 2001 From: Dev Date: Fri, 22 Nov 2024 15:10:45 +0000 Subject: [PATCH] Add extra check to transit code inside `endLocalRaid()` --- project/src/services/LocationLifecycleService.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/project/src/services/LocationLifecycleService.ts b/project/src/services/LocationLifecycleService.ts index 988a0ca0..fc61663c 100644 --- a/project/src/services/LocationLifecycleService.ts +++ b/project/src/services/LocationLifecycleService.ts @@ -271,8 +271,7 @@ export class LocationLifecycleService { } // If new spawn system is enabled, clear the spawn waves - if (locationBaseClone.NewSpawn) - { + if (locationBaseClone.NewSpawn) { locationBaseClone.waves = []; } @@ -360,7 +359,7 @@ export class LocationLifecycleService { this.handleItemTransferEvent(sessionId, request); // Player is moving between maps - if (isTransfer) { + if (isTransfer && request.locationTransit) { // Manually store the map player just left request.locationTransit.sptLastVisitedLocation = locationName; // TODO - Persist each players last visited location history over multiple transits, e.g using InMemoryCacheService, need to take care to not let data get stored forever