Add missing condition that sometimees stops the plugin from working

This commit is contained in:
Liza 2023-09-04 03:19:31 +02:00
parent 76822cd50a
commit c04ff759cd
Signed by: liza
GPG Key ID: 7199F8D727D55F67

View File

@ -78,6 +78,7 @@ internal sealed class AllaganToolsIpc : IDisposable
var characters = Characters.All.ToDictionary(x => x.CharacterId, x => x);
return Inventories.All
.Where(x => !_configuration.ExcludedCharacters.Contains(x.Key))
.Where(x => characters.ContainsKey(x.Value.CharacterId))
.ToDictionary(
x => characters[x.Value.CharacterId],
y =>