From 4f73860e669a9b7b276b6ab013d943ad44744801 Mon Sep 17 00:00:00 2001 From: Cj <161484149+CJ-SPT@users.noreply.github.com> Date: Sun, 19 Oct 2025 00:09:27 -0400 Subject: [PATCH] Fix ProfileDataService adding the string to the cache instead of the object --- .../SPTarkov.Server.Core/Services/Mod/ProfileDataService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/SPTarkov.Server.Core/Services/Mod/ProfileDataService.cs b/Libraries/SPTarkov.Server.Core/Services/Mod/ProfileDataService.cs index 701d7d21..61902fad 100644 --- a/Libraries/SPTarkov.Server.Core/Services/Mod/ProfileDataService.cs +++ b/Libraries/SPTarkov.Server.Core/Services/Mod/ProfileDataService.cs @@ -48,7 +48,7 @@ public class ProfileDataService(ISptLogger logger, FileUtil throw new Exception("The profile data when serialized resulted in a null value"); } - while (!_profileDataCache.TryAdd($"{profileId}:{modKey}", data)) { } + while (!_profileDataCache.TryAdd($"{profileId}:{modKey}", profileData)) { } fileUtil.WriteFile($"{ProfileDataFilepath}{profileId}/{modKey}.json", data); }