mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Little refactor of GetMenstruationComp(pregnancy) again
This commit is contained in:
parent
6143fb41fb
commit
35b875980a
1 changed files with 1 additions and 2 deletions
|
@ -55,8 +55,7 @@ namespace RJW_Menstruation
|
|||
|
||||
public static HediffComp_Menstruation GetMenstruationComp(this Hediff_BasePregnancy pregnancy)
|
||||
{
|
||||
if (pregnancy == null) return null;
|
||||
else return pregnancy.pawn.GetMenstruationComps().FirstOrDefault(comp => comp.Pregnancy == pregnancy);
|
||||
return pregnancy?.pawn.GetMenstruationComps().FirstOrDefault(comp => comp.Pregnancy == pregnancy);
|
||||
}
|
||||
|
||||
public static HediffComp_Anus GetAnusComp(this Pawn pawn)
|
||||
|
|
Loading…
Reference in a new issue