do not protect when state is locked.

This commit is contained in:
Ottermandias 2023-12-29 19:01:05 +01:00
parent 6c5c202356
commit 22ea1e344e

View file

@ -134,7 +134,7 @@ public class StateListener : IDisposable
}
_funModule.ApplyFunOnLoad(actor, new Span<CharacterArmor>((void*)equipDataPtr, 10), ref customize);
if (modelId == 0)
if (modelId == 0 && _creatingState is not { IsLocked: true })
ProtectRestrictedGear(equipDataPtr, customize.Race, customize.Gender);
}