From 64722bac174620e4f918cb1910780ecf534868d8 Mon Sep 17 00:00:00 2001 From: Dev Date: Sat, 25 Nov 2023 13:26:11 +0000 Subject: [PATCH] Add quit exit for gameStart when resetting profile --- project/src/controllers/GameController.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/project/src/controllers/GameController.ts b/project/src/controllers/GameController.ts index a3789066..90bdc6e6 100644 --- a/project/src/controllers/GameController.ts +++ b/project/src/controllers/GameController.ts @@ -127,6 +127,12 @@ export class GameController if (sessionID) { const fullProfile = this.profileHelper.getFullProfile(sessionID); + if (fullProfile.info.wipe) + { + // Don't bother doing any fixes, we're resetting profile + return; + } + const pmcProfile = fullProfile.characters.pmc; this.logger.debug(`Started game with sessionId: ${sessionID} ${pmcProfile.Info?.Nickname}`);