minor bugfix: wakeup before partnerinmybed to prevent null ref
This commit is contained in:
parent
117a6ae90c
commit
2fb5f220dd
Binary file not shown.
|
@ -17,9 +17,8 @@ namespace Rimworld_Animations {
|
|||
public static void Postfix(ref Pawn pawn, ref Job __result) {
|
||||
|
||||
if(__result != null) {
|
||||
|
||||
RestUtility.WakeUp(pawn);
|
||||
Pawn partnerInMyBed = LovePartnerRelationUtility.GetPartnerInMyBed(pawn);
|
||||
RestUtility.WakeUp(pawn);
|
||||
__result = JobMaker.MakeJob(DefDatabase<JobDef>.GetNamed("JoinInBedAnimation", true), partnerInMyBed, partnerInMyBed.CurrentBed());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue