From 22ea1e344e009d1453912ba2f3bbd99cc4c0f68f Mon Sep 17 00:00:00 2001 From: Ottermandias Date: Fri, 29 Dec 2023 19:01:05 +0100 Subject: [PATCH] do not protect when state is locked. --- Glamourer/State/StateListener.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Glamourer/State/StateListener.cs b/Glamourer/State/StateListener.cs index c4c5fb1..bbc519f 100644 --- a/Glamourer/State/StateListener.cs +++ b/Glamourer/State/StateListener.cs @@ -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((void*)equipDataPtr, 10), ref customize); - if (modelId == 0) + if (modelId == 0 && _creatingState is not { IsLocked: true }) ProtectRestrictedGear(equipDataPtr, customize.Race, customize.Gender); }