Add missing condition that sometimees stops the plugin from working

master
Liza 2023-09-04 03:19:31 +02:00
parent 76822cd50a
commit c04ff759cd
Signed by: liza
GPG Key ID: 7199F8D727D55F67
1 changed files with 1 additions and 0 deletions

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 =>