reenable customize+

This commit is contained in:
Stanley Dimant
2024-07-29 23:04:10 +02:00
parent 801afebfc9
commit fd3b1d3e31
3 changed files with 20 additions and 21 deletions

View File

@@ -79,9 +79,10 @@ public sealed class CacheCreationService : DisposableMediatorSubscriberBase
if (_isZoning) return;
_ = Task.Run(async () =>
{
foreach (var item in _playerRelatedObjects
.Where(item => string.IsNullOrEmpty(msg.ProfileName)
|| string.Equals(item.Value.Name, msg.ProfileName, StringComparison.Ordinal)).Select(k => k.Key))
.Where(item => msg.Address == null
|| item.Value.Address == msg.Address).Select(k => k.Key))
{
Logger.LogDebug("Received CustomizePlus change, updating {obj}", item);
await AddPlayerCacheToCreate(item).ConfigureAwait(false);