diff --git a/RJWSexperience/RJWSexperience/Patches/RJW_Patch.cs b/RJWSexperience/RJWSexperience/Patches/RJW_Patch.cs index 53c7502..95d61cd 100644 --- a/RJWSexperience/RJWSexperience/Patches/RJW_Patch.cs +++ b/RJWSexperience/RJWSexperience/Patches/RJW_Patch.cs @@ -78,17 +78,17 @@ namespace RJWSexperience // Depending on configuration, also fill cumbuckets when certain sextypes are matched || (SexperienceMod.Settings.SexCanFillBuckets && (sextype == xxx.rjwSextype.Boobjob || sextype == xxx.rjwSextype.Footjob || sextype == xxx.rjwSextype.Handjob)); - if (sexFillsCumbuckets) - { - IEnumerable buckets = props.pawn.GetAdjacentBuildings(); + if (!sexFillsCumbuckets) + return; - if (buckets?.EnumerableCount() > 0) + IEnumerable buckets = props.pawn.GetAdjacentBuildings(); + + if (buckets?.EnumerableCount() > 0) + { + var initialCum = CumUtility.GetCumVolume(props.pawn); + foreach (Building_CumBucket bucket in buckets) { - var initialCum = CumUtility.GetCumVolume(props.pawn); - foreach (Building_CumBucket bucket in buckets) - { - bucket.AddCum(initialCum / buckets.EnumerableCount()); - } + bucket.AddCum(initialCum / buckets.EnumerableCount()); } } }