mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-12 18:27:24 +01:00
do not protect when state is locked.
This commit is contained in:
parent
6c5c202356
commit
22ea1e344e
1 changed files with 2 additions and 2 deletions
|
|
@ -28,7 +28,7 @@ public class StateListener : IDisposable
|
|||
private readonly StateManager _manager;
|
||||
private readonly StateApplier _applier;
|
||||
private readonly ItemManager _items;
|
||||
private readonly CustomizeService _customizations;
|
||||
private readonly CustomizeService _customizations;
|
||||
private readonly PenumbraService _penumbra;
|
||||
private readonly SlotUpdating _slotUpdating;
|
||||
private readonly WeaponLoading _weaponLoading;
|
||||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue