Remove unnecessary null check

This commit is contained in:
lutepickle 2024-03-24 21:59:25 -07:00
parent 1dcd67c97c
commit ef6bae09be

View file

@ -971,7 +971,7 @@ namespace RJW_Menstruation
if (Pawn.HasIUD()) antisperm = 0.70f + asafactor;
else antisperm = 0.0f + asafactor;
absorber = (Absorber)Pawn.apparel?.WornApparel?.Find(x => x is Absorber);
absorber = (Absorber)Pawn.apparel?.WornApparel.Find(x => x is Absorber);
if (absorber != null)
{
absorber.WearEffect(TickInterval);