It's safe and a bit quicker to unconditionally remove forced in CheckDirty

This commit is contained in:
lutepickle 2024-02-17 15:37:14 -08:00
parent 8306439576
commit ff95b8da39
1 changed files with 1 additions and 3 deletions

View File

@ -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();