Add extra check to transit code inside endLocalRaid()
This commit is contained in:
parent
a9f459d8b3
commit
218c720cdb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user