mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-12 18:27:24 +01:00
Fix very stupid bug with shields.
This commit is contained in:
parent
55af7f7371
commit
8e736c62c6
2 changed files with 5 additions and 1 deletions
|
|
@ -906,6 +906,8 @@ public unsafe class DebugTab : ITab
|
|||
design.DoApplyVisorToggle(), design.DoApplyWeaponVisible(), design.WriteProtected());
|
||||
using var font = ImRaii.PushFont(UiBuilder.MonoFont);
|
||||
ImGuiUtil.TextWrapped(base64);
|
||||
if (ImGui.IsItemClicked())
|
||||
ImGui.SetClipboardText(base64);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -978,6 +980,7 @@ public unsafe class DebugTab : ITab
|
|||
|
||||
ImGui.SameLine();
|
||||
}
|
||||
ImGui.NewLine();
|
||||
}
|
||||
|
||||
if (_parse64Failure != null && _base64Bytes.Length > 0)
|
||||
|
|
@ -993,6 +996,7 @@ public unsafe class DebugTab : ITab
|
|||
|
||||
ImGui.SameLine();
|
||||
}
|
||||
ImGui.NewLine();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ public class ItemManager : IDisposable
|
|||
if (itemId == NothingId(type))
|
||||
return NothingItem(type);
|
||||
|
||||
if (!ItemService.AwaitedService.TryGetValue(itemId, false, out var item))
|
||||
if (!ItemService.AwaitedService.TryGetValue(itemId, type is FullEquipType.Shield, out var item))
|
||||
return new EquipItem(string.Intern($"Unknown #{itemId}"), itemId, 0, 0, 0, 0, 0);
|
||||
|
||||
if (item.Type != type)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue