Fix issue with Penumbra load order and visor state.

This commit is contained in:
Ottermandias 2024-06-15 11:52:38 +02:00
parent 205a95b254
commit 5cf6b0eb75
3 changed files with 31 additions and 6 deletions

View file

@ -578,6 +578,8 @@ public class StateListener : IDisposable
// We do not need to handle fixed designs,
// since a fixed design would already have established state-tracking.
var actor = _penumbra.GameObjectFromDrawObject(model);
if (!actor.IsCharacter)
return;
// Only actually change anything if the actor state changed,
// when equipping headgear the method is called with the current draw object state,