mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-12 18:27:24 +01:00
I don't know what behavior changed here but this fixes the issue.
This commit is contained in:
parent
c3f2e7d3a1
commit
6130bae81d
1 changed files with 5 additions and 2 deletions
|
|
@ -4,6 +4,7 @@ using System.Linq;
|
|||
using Dalamud.Game.ClientState.Objects.Enums;
|
||||
using Dalamud.Utility;
|
||||
using ImGuiNET;
|
||||
using OtterGui;
|
||||
using OtterGui.Custom;
|
||||
using OtterGui.Log;
|
||||
using OtterGui.Widgets;
|
||||
|
|
@ -80,8 +81,10 @@ public sealed class HumanNpcCombo(
|
|||
switch (kind)
|
||||
{
|
||||
case ObjectKind.BattleNpc:
|
||||
var nameIds = bNpcNames[id];
|
||||
ret.AddRange(nameIds.Select(nameId => (bNpcs[nameId], kind, nameId.Id)));
|
||||
if (!bNpcNames.TryGetValue(id, out var nameIds))
|
||||
continue;
|
||||
|
||||
ret.AddRange(nameIds.SelectWhere(nameId => (bNpcs.TryGetValue(nameId, out var s), (s!, kind, nameId.Id))));
|
||||
break;
|
||||
case ObjectKind.EventNpc:
|
||||
ret.Add((name, kind, id));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue