skip IK replacement if head zone is null

This commit is contained in:
Mister_Nebula 2022-01-13 12:13:47 +00:00
parent f81b70f6e5
commit 864b29aec9

View File

@ -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<QSBCharacterTrigger>(); // OPTIMIZE : maybe cache this somewhere... or assess how slow this is
PlayerInfo playerToUse = null;