Flip the if in PostBirth

This commit is contained in:
lutepickle 2022-07-30 18:31:35 -07:00
parent c5d8a92299
commit 814d500b45

View file

@ -243,8 +243,8 @@ namespace RJW_Menstruation
public override void PostBirth(Pawn mother, Pawn father, Pawn baby) public override void PostBirth(Pawn mother, Pawn father, Pawn baby)
{ {
base.PostBirth(mother, father, baby); base.PostBirth(mother, father, baby);
if (enzygoticSiblings.NullOrEmpty() || !enzygoticSiblings.TryGetValue(baby, out Pawn original) || baby == original) return;
// Has to happen on birth since RJW redoes the genitals at birth // Has to happen on birth since RJW redoes the genitals at birth
if (!enzygoticSiblings.NullOrEmpty() && enzygoticSiblings.TryGetValue(baby, out Pawn original) && baby != original)
ProcessIdenticalSibling(baby, original); ProcessIdenticalSibling(baby, original);
} }