Clean up ignore code

This commit is contained in:
Dev 2023-09-08 15:38:10 +01:00
parent fbe5af24ee
commit 802709873b

View File

@ -88,13 +88,13 @@ public class MultithreadSteppedDumpProcessor : IDumpProcessor
mapDumpCounter.Add(data.Data.Name, 1);
}
LootDumpProcessorContext.GetConfig().ContainerIgnoreList.TryGetValue(data.Data.Id.ToLower(), out string[]? ignoreListForMap);
var containerIgnoreListExists = LootDumpProcessorContext.GetConfig().ContainerIgnoreList.TryGetValue(data.Data.Id.ToLower(), out string[]? ignoreListForMap);
foreach (var dynamicStaticContainer in StaticLootProcessor.CreateDynamicStaticContainers(data))
{
lock (mapStaticContainersAggregatedLock)
{
// Skip adding containers to aggredated data if container id is in ignore list
if (ignoreListForMap != null && ignoreListForMap.Contains(dynamicStaticContainer.Id))
if (containerIgnoreListExists && ignoreListForMap.Contains(dynamicStaticContainer.Id))
{
continue;
}