Removed unncessary check now the id is a MongoId

This commit is contained in:
Chomp
2025-08-06 12:47:53 +01:00
parent cdc9cd59e2
commit 40fe4dbd89
@@ -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(
}
}
/// <summary>
/// Check for a dialog with the key 'undefined', and remove it
/// </summary>
/// <param name="fullProfile">Profile to check for dialog in</param>
protected void CheckForAndRemoveUndefinedDialogues(SptProfile fullProfile)
{
if (fullProfile.DialogueRecords!.TryGetValue("undefined", out _))
{
fullProfile.DialogueRecords.Remove("undefined");
}
}
/// <summary>
/// </summary>
/// <param name="fullProfile"></param>