mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-14 20:54:17 +01:00
Fix hat gear hiding triggering on other flag changes.
This commit is contained in:
parent
c335a853b2
commit
bebab21919
1 changed files with 6 additions and 0 deletions
|
|
@ -67,6 +67,12 @@ public unsafe class MetaService : IDisposable
|
||||||
|
|
||||||
private void HideHatDetour(DrawDataContainer* drawData, uint id, byte value)
|
private void HideHatDetour(DrawDataContainer* drawData, uint id, byte value)
|
||||||
{
|
{
|
||||||
|
if (id != 0)
|
||||||
|
{
|
||||||
|
_hideHatGearHook.Original(drawData, id, value);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Actor actor = drawData->Parent;
|
Actor actor = drawData->Parent;
|
||||||
var v = value == 0;
|
var v = value == 0;
|
||||||
_headGearEvent.Invoke(actor, ref v);
|
_headGearEvent.Invoke(actor, ref v);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue