mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-29 09:32:38 +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)
|
if (!WorldObjectManager.AllObjectsReady || ConversationManager.Instance == null)
|
||||||
{
|
{
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
var playerId = ConversationManager.Instance.GetPlayerTalkingToTree(__instance._dialogueTree);
|
var playerId = ConversationManager.Instance.GetPlayerTalkingToTree(__instance._dialogueTree);
|
||||||
var player = QSBPlayerManager.GetPlayer(playerId);
|
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
|
var qsbObj = __instance.playerTrackingZone.GetWorldObject<QSBCharacterTrigger>(); // OPTIMIZE : maybe cache this somewhere... or assess how slow this is
|
||||||
|
|
||||||
PlayerInfo playerToUse = null;
|
PlayerInfo playerToUse = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user