From fc1f25a70d6c312dc9c0360d5ea7b682e2b7886f Mon Sep 17 00:00:00 2001 From: Noah Pilarski Date: Sat, 1 Jun 2024 22:17:20 -0400 Subject: [PATCH] check InConversation to avoid unnecessary EndConversation calls (#859) even though this already happens in CharacterDialogueTree.EndConversation itself, I did it for Ixrec anyways. --- .../Patches/DialoguePatches/CharacterDialogueTreePatches.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/NewHorizons/Patches/DialoguePatches/CharacterDialogueTreePatches.cs b/NewHorizons/Patches/DialoguePatches/CharacterDialogueTreePatches.cs index 1ef6c7b3..d30cc7b7 100644 --- a/NewHorizons/Patches/DialoguePatches/CharacterDialogueTreePatches.cs +++ b/NewHorizons/Patches/DialoguePatches/CharacterDialogueTreePatches.cs @@ -24,7 +24,10 @@ public static class CharacterDialogueTreePatches private static void OnAttachPlayerToPoint(this CharacterDialogueTree characterDialogueTree, OWRigidbody rigidbody) { - characterDialogueTree.EndConversation(); + if (characterDialogueTree.InConversation()) + { + characterDialogueTree.EndConversation(); + } } [HarmonyPostfix]