From bebab219194bc5d3f5f45810a93d9ffe52f3e232 Mon Sep 17 00:00:00 2001 From: Ottermandias Date: Tue, 10 Oct 2023 00:15:27 +0200 Subject: [PATCH] Fix hat gear hiding triggering on other flag changes. --- Glamourer/Interop/MetaService.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Glamourer/Interop/MetaService.cs b/Glamourer/Interop/MetaService.cs index 95077bd..7ed0948 100644 --- a/Glamourer/Interop/MetaService.cs +++ b/Glamourer/Interop/MetaService.cs @@ -67,6 +67,12 @@ public unsafe class MetaService : IDisposable private void HideHatDetour(DrawDataContainer* drawData, uint id, byte value) { + if (id != 0) + { + _hideHatGearHook.Original(drawData, id, value); + return; + } + Actor actor = drawData->Parent; var v = value == 0; _headGearEvent.Invoke(actor, ref v);