mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Slightly more efficient comp copier for menstruation and breast
This commit is contained in:
parent
3cca6db53e
commit
9b0363aec2
1 changed files with 4 additions and 6 deletions
|
@ -204,17 +204,15 @@ namespace RJW_Menstruation
|
|||
comp.FluidModifier = originalComp.FluidModifier;
|
||||
}
|
||||
|
||||
HediffComp_Menstruation menstruationComp = part.GetMenstruationComp();
|
||||
HediffComp_Menstruation originalMenstruationComp = originalPart.GetMenstruationComp();
|
||||
if (menstruationComp != null && originalMenstruationComp != null)
|
||||
if (originalMenstruationComp != null)
|
||||
{
|
||||
menstruationComp.CopyCycleProperties(originalMenstruationComp);
|
||||
part.GetMenstruationComp()?.CopyCycleProperties(originalMenstruationComp);
|
||||
}
|
||||
HediffComp_Breast breastComp = part.GetBreastComp();
|
||||
HediffComp_Breast originalBreastComp = originalPart.GetBreastComp();
|
||||
if (breastComp != null && originalBreastComp != null)
|
||||
if (originalBreastComp != null)
|
||||
{
|
||||
breastComp.CopyBreastProperties(originalBreastComp);
|
||||
part.GetBreastComp()?.CopyBreastProperties(originalBreastComp);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue