diff --git a/1.1/Assemblies/Rimworld-Animations.dll b/1.1/Assemblies/Rimworld-Animations.dll index fe26b9f..e3fe38d 100644 Binary files a/1.1/Assemblies/Rimworld-Animations.dll and b/1.1/Assemblies/Rimworld-Animations.dll differ diff --git a/Defs/AnimationDefs/Animations_vanilla.xml b/Defs/AnimationDefs/Animations_vanilla.xml index 11b8c68..dc3fd5e 100644 --- a/Defs/AnimationDefs/Animations_vanilla.xml +++ b/Defs/AnimationDefs/Animations_vanilla.xml @@ -1968,24 +1968,27 @@
  • Anal
  • Vaginal
  • + + + +
  • Human
  • - -
  • Human
  • -
    true true +
  • Human
  • true +
    diff --git a/Source/Patches/HarmonyPatch_FacialAnimation.cs b/Source/Patches/HarmonyPatch_FacialAnimation.cs index f4f1572..6b7a7f4 100644 --- a/Source/Patches/HarmonyPatch_FacialAnimation.cs +++ b/Source/Patches/HarmonyPatch_FacialAnimation.cs @@ -69,7 +69,7 @@ namespace Rimworld_Animations { public static bool Prefix_IsSameA(JobDef job, string ___jobDef, ref bool __result) { - if(___jobDef == "Lovin" && rjwLovinDefNames.Contains(job.ToString())) { + if(___jobDef != null && ___jobDef == "Lovin" && job?.defName != null && rjwLovinDefNames.Contains(job?.defName)) { __result = true; return false; } @@ -79,7 +79,7 @@ namespace Rimworld_Animations { public static bool Prefix_IsSameB(string jobName, string ___jobDef, ref bool __result) { - if (___jobDef == "Lovin" && rjwLovinDefNames.Contains(jobName)) { + if (___jobDef != null && ___jobDef == "Lovin" && jobName != null && rjwLovinDefNames.Contains(jobName)) { __result = true; return false; }