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.Game.ClientState.Objects.Enums;
|
||||||
using Dalamud.Utility;
|
using Dalamud.Utility;
|
||||||
using ImGuiNET;
|
using ImGuiNET;
|
||||||
|
using OtterGui;
|
||||||
using OtterGui.Custom;
|
using OtterGui.Custom;
|
||||||
using OtterGui.Log;
|
using OtterGui.Log;
|
||||||
using OtterGui.Widgets;
|
using OtterGui.Widgets;
|
||||||
|
|
@ -80,8 +81,10 @@ public sealed class HumanNpcCombo(
|
||||||
switch (kind)
|
switch (kind)
|
||||||
{
|
{
|
||||||
case ObjectKind.BattleNpc:
|
case ObjectKind.BattleNpc:
|
||||||
var nameIds = bNpcNames[id];
|
if (!bNpcNames.TryGetValue(id, out var nameIds))
|
||||||
ret.AddRange(nameIds.Select(nameId => (bNpcs[nameId], kind, nameId.Id)));
|
continue;
|
||||||
|
|
||||||
|
ret.AddRange(nameIds.SelectWhere(nameId => (bNpcs.TryGetValue(nameId, out var s), (s!, kind, nameId.Id))));
|
||||||
break;
|
break;
|
||||||
case ObjectKind.EventNpc:
|
case ObjectKind.EventNpc:
|
||||||
ret.Add((name, kind, id));
|
ret.Add((name, kind, id));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue