From 8559c52c67424498199e02fc591c74894b9d1c54 Mon Sep 17 00:00:00 2001 From: CWX Date: Sat, 25 Jan 2025 11:50:07 +0000 Subject: [PATCH] fix traderRefresh of purchases --- Libraries/Core/Services/TraderPurchasePersisterService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/Core/Services/TraderPurchasePersisterService.cs b/Libraries/Core/Services/TraderPurchasePersisterService.cs index 64cbc04d..30ef4c72 100644 --- a/Libraries/Core/Services/TraderPurchasePersisterService.cs +++ b/Libraries/Core/Services/TraderPurchasePersisterService.cs @@ -148,9 +148,9 @@ public class TraderPurchasePersisterService( if (resetTimeForItem < _timeUtil.GetTimeStamp()) { // Item was purchased far enough in past a trader refresh would have occured, remove purchase record from profile - _logger.Debug($"Removed trader: {traderId} purchase: {purchaseKvP} from profile: {profile.ProfileInfo.ProfileId}"); + _logger.Debug($"Not a bad warning: Removed trader: {traderId} purchase: {purchaseKvP} from profile: {profile.ProfileInfo.ProfileId}"); - profile.TraderPurchases.Remove(purchaseKvP.Key); + profile.TraderPurchases[traderId].Remove(purchaseKvP.Key); } } }