diff --git a/1.5/Assemblies/Rimworld-Animations.dll b/1.5/Assemblies/Rimworld-Animations.dll index 91abcb8..20b8459 100644 Binary files a/1.5/Assemblies/Rimworld-Animations.dll and b/1.5/Assemblies/Rimworld-Animations.dll differ diff --git a/1.5/Source/Patches/RJWPatches/JobDrivers/HarmonyPatch_JobDriver_SexBaseInitiator.cs b/1.5/Source/Patches/RJWPatches/JobDrivers/HarmonyPatch_JobDriver_SexBaseInitiator.cs index 024d43e..0663775 100644 --- a/1.5/Source/Patches/RJWPatches/JobDrivers/HarmonyPatch_JobDriver_SexBaseInitiator.cs +++ b/1.5/Source/Patches/RJWPatches/JobDrivers/HarmonyPatch_JobDriver_SexBaseInitiator.cs @@ -23,9 +23,9 @@ namespace Rimworld_Animations { List participants = partnerSexBaseReceiver.parteners.Append(partner).ToList(); GroupAnimationDef groupAnimation = AnimationUtility.FindGroupAnimation(participants, out int reorder); + if (groupAnimation != null) { - Thing anchor = (Thing)__instance.Bed ?? partner; AnimationUtility.StartGroupAnimation(participants, groupAnimation, reorder, anchor); @@ -33,6 +33,15 @@ namespace Rimworld_Animations { foreach(Pawn participant in participants) { + if (RJWAnimationSettings.debugMode) + { + Log.Message("1"); + Log.Message("Participant: " + participant.Name); + Log.Message("2"); + Log.Message("JobDriver: " + participant.CurJobDef.defName); + + } + //null ref check for pawns that might have lost their jobs or become null for some reason if (participant?.jobs?.curDriver is JobDriver_Sex participantJobDriver) {