From 864b29aec97c9f73ad86b7c6aad02a893ff0030e Mon Sep 17 00:00:00 2001 From: Mister_Nebula <41904486+misternebula@users.noreply.github.com> Date: Thu, 13 Jan 2022 12:13:47 +0000 Subject: [PATCH] skip IK replacement if head zone is null --- QSB/Animation/NPC/Patches/CharacterAnimationPatches.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/QSB/Animation/NPC/Patches/CharacterAnimationPatches.cs b/QSB/Animation/NPC/Patches/CharacterAnimationPatches.cs index b8e797f7..442b3e8d 100644 --- a/QSB/Animation/NPC/Patches/CharacterAnimationPatches.cs +++ b/QSB/Animation/NPC/Patches/CharacterAnimationPatches.cs @@ -26,11 +26,17 @@ namespace QSB.Animation.NPC.Patches { if (!WorldObjectManager.AllObjectsReady || ConversationManager.Instance == null) { - return false; + return true; } var playerId = ConversationManager.Instance.GetPlayerTalkingToTree(__instance._dialogueTree); var player = QSBPlayerManager.GetPlayer(playerId); + + if (__instance.playerTrackingZone == null) + { + return true; + } + var qsbObj = __instance.playerTrackingZone.GetWorldObject(); // OPTIMIZE : maybe cache this somewhere... or assess how slow this is PlayerInfo playerToUse = null;