Replaced Wishlist property in profile with pure dictionary

This commit is contained in:
Chomp
2025-08-06 12:47:28 +01:00
parent 7ece60ac54
commit cdc9cd59e2
5 changed files with 9 additions and 14 deletions
@@ -13,7 +13,6 @@ using SPTarkov.Server.Core.Models.Utils;
using SPTarkov.Server.Core.Servers;
using SPTarkov.Server.Core.Services;
using SPTarkov.Server.Core.Utils;
using SPTarkov.Server.Core.Utils.Json;
using LogLevel = SPTarkov.Server.Core.Models.Spt.Logging.LogLevel;
namespace SPTarkov.Server.Core.Controllers;
@@ -82,8 +81,8 @@ public class GameController(
return;
}
fullProfile.CharacterData!.PmcData!.WishList ??= new DictionaryOrList<MongoId, int>(new Dictionary<MongoId, int>(), []);
fullProfile.CharacterData.ScavData!.WishList ??= new DictionaryOrList<MongoId, int>(new Dictionary<MongoId, int>(), []);
fullProfile.CharacterData!.PmcData!.WishList ??= new();
fullProfile.CharacterData.ScavData!.WishList ??= new();
if (fullProfile.DialogueRecords is not null)
{