mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
It's safe and a bit quicker to unconditionally remove forced in CheckDirty
This commit is contained in:
parent
8306439576
commit
ff95b8da39
1 changed files with 1 additions and 3 deletions
|
@ -225,9 +225,7 @@ namespace RJW_Menstruation
|
||||||
bool newHasStats = !DirtyDef.equippedStatOffsets.NullOrEmpty();
|
bool newHasStats = !DirtyDef.equippedStatOffsets.NullOrEmpty();
|
||||||
def = DirtyDef;
|
def = DirtyDef;
|
||||||
dirty = true;
|
dirty = true;
|
||||||
OutfitForcedHandler forcedHandler = Wearer.outfits?.forcedHandler;
|
Wearer.outfits?.forcedHandler?.SetForced(this, false);
|
||||||
if (forcedHandler?.IsForced(this) ?? false)
|
|
||||||
forcedHandler.SetForced(this, false);
|
|
||||||
if (oldHasStats || newHasStats)
|
if (oldHasStats || newHasStats)
|
||||||
Wearer.health.capacities.Notify_CapacityLevelsDirty();
|
Wearer.health.capacities.Notify_CapacityLevelsDirty();
|
||||||
Wearer.apparel.Notify_ApparelChanged();
|
Wearer.apparel.Notify_ApparelChanged();
|
||||||
|
|
Loading…
Reference in a new issue