diff --git a/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/MenstruationUtility.cs b/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/MenstruationUtility.cs index ae87a94..95901c6 100644 --- a/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/MenstruationUtility.cs +++ b/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/MenstruationUtility.cs @@ -397,11 +397,8 @@ namespace RJW_Menstruation { if (!Configurations.EnableAnimalCycle && pawn.IsAnimal()) return false; if (pawn.RaceHasOviPregnancy()) return false; - if (ModsConfig.BiotechActive && pawn.genes != null) - { - foreach (GeneDef geneDef in pawn.genes.GenesListForReading.Select(gene => gene.def)) - if (VariousDefOf.EggLayerGenes.Contains(geneDef)) return false; - } + if (ModsConfig.BiotechActive && pawn.genes != null && + pawn.genes.GenesListForReading.Select(gene => gene.def).Intersect(VariousDefOf.EggLayerGenes).Any()) return false; return true; }