mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
check InConversation to avoid unnecessary EndConversation calls (#859)
even though this already happens in CharacterDialogueTree.EndConversation itself, I did it for Ixrec anyways.
This commit is contained in:
parent
fb9e10fee7
commit
fc1f25a70d
@ -23,9 +23,12 @@ public static class CharacterDialogueTreePatches
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static void OnAttachPlayerToPoint(this CharacterDialogueTree characterDialogueTree, OWRigidbody rigidbody)
|
private static void OnAttachPlayerToPoint(this CharacterDialogueTree characterDialogueTree, OWRigidbody rigidbody)
|
||||||
|
{
|
||||||
|
if (characterDialogueTree.InConversation())
|
||||||
{
|
{
|
||||||
characterDialogueTree.EndConversation();
|
characterDialogueTree.EndConversation();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
[HarmonyPostfix]
|
[HarmonyPostfix]
|
||||||
[HarmonyPatch(nameof(CharacterDialogueTree.StartConversation))]
|
[HarmonyPatch(nameof(CharacterDialogueTree.StartConversation))]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user