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();
|
||||
def = DirtyDef;
|
||||
dirty = true;
|
||||
OutfitForcedHandler forcedHandler = Wearer.outfits?.forcedHandler;
|
||||
if (forcedHandler?.IsForced(this) ?? false)
|
||||
forcedHandler.SetForced(this, false);
|
||||
Wearer.outfits?.forcedHandler?.SetForced(this, false);
|
||||
if (oldHasStats || newHasStats)
|
||||
Wearer.health.capacities.Notify_CapacityLevelsDirty();
|
||||
Wearer.apparel.Notify_ApparelChanged();
|
||||
|
|
Loading…
Reference in a new issue