From 40fe4dbd89242d754ed3a6b975915561cf4d1821 Mon Sep 17 00:00:00 2001 From: Chomp Date: Wed, 6 Aug 2025 12:47:53 +0100 Subject: [PATCH] Removed unncessary check now the id is a MongoId --- .../Controllers/GameController.cs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/Libraries/SPTarkov.Server.Core/Controllers/GameController.cs b/Libraries/SPTarkov.Server.Core/Controllers/GameController.cs index 1d0e8778..02d31e51 100644 --- a/Libraries/SPTarkov.Server.Core/Controllers/GameController.cs +++ b/Libraries/SPTarkov.Server.Core/Controllers/GameController.cs @@ -134,7 +134,6 @@ public class GameController( if (pmcProfile.Info is not null) { AddPlayerToPmcNames(pmcProfile); - CheckForAndRemoveUndefinedDialogues(fullProfile); } if (pmcProfile.Skills?.Common is not null) @@ -489,18 +488,6 @@ public class GameController( } } - /// - /// Check for a dialog with the key 'undefined', and remove it - /// - /// Profile to check for dialog in - protected void CheckForAndRemoveUndefinedDialogues(SptProfile fullProfile) - { - if (fullProfile.DialogueRecords!.TryGetValue("undefined", out _)) - { - fullProfile.DialogueRecords.Remove("undefined"); - } - } - /// /// ///