mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-17 01:13:05 +00:00
skip IK replacement if head zone is null
This commit is contained in:
parent
f81b70f6e5
commit
864b29aec9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user