From 455bdae717ae85c53153fb087d4ddc6690834391 Mon Sep 17 00:00:00 2001 From: Ottermandias Date: Sat, 7 Oct 2023 02:58:27 +0200 Subject: [PATCH] Fix an issue with hat state. --- Glamourer/State/StateListener.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Glamourer/State/StateListener.cs b/Glamourer/State/StateListener.cs index 9082ce4..db4670d 100644 --- a/Glamourer/State/StateListener.cs +++ b/Glamourer/State/StateListener.cs @@ -382,7 +382,9 @@ public class StateListener : IDisposable switch (UpdateBaseData(actor, state, slot, armor)) { // Transformed also handles invisible hat state. - case UpdateState.Transformed: break; + case UpdateState.Transformed when slot is EquipSlot.Head && armor.Value == 0 && state.ModelData.IsHatVisible(): + armor = state.ModelData.Armor(slot); + break; // Base data changed equipment while actors were not there. // Update model state if not on fixed design. case UpdateState.Change: @@ -405,6 +407,7 @@ public class StateListener : IDisposable case UpdateState.NoChange: armor = state.ModelData.Armor(slot); break; + case UpdateState.Transformed: break; } }