mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-14 20:54:17 +01:00
Fix an issue with hat state.
This commit is contained in:
parent
6ca54c6a15
commit
455bdae717
1 changed files with 4 additions and 1 deletions
|
|
@ -382,7 +382,9 @@ public class StateListener : IDisposable
|
||||||
switch (UpdateBaseData(actor, state, slot, armor))
|
switch (UpdateBaseData(actor, state, slot, armor))
|
||||||
{
|
{
|
||||||
// Transformed also handles invisible hat state.
|
// 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.
|
// Base data changed equipment while actors were not there.
|
||||||
// Update model state if not on fixed design.
|
// Update model state if not on fixed design.
|
||||||
case UpdateState.Change:
|
case UpdateState.Change:
|
||||||
|
|
@ -405,6 +407,7 @@ public class StateListener : IDisposable
|
||||||
case UpdateState.NoChange:
|
case UpdateState.NoChange:
|
||||||
armor = state.ModelData.Armor(slot);
|
armor = state.ModelData.Armor(slot);
|
||||||
break;
|
break;
|
||||||
|
case UpdateState.Transformed: break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue