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 (#877)
## Improvements - fix #859: CharacterDialogueTree.InConversation is now checked in our attachment patch to avoid unnecessary EndConversation calls.
This commit is contained in:
commit
fef13f6710
@ -23,9 +23,12 @@ public static class CharacterDialogueTreePatches
|
||||
}
|
||||
|
||||
private static void OnAttachPlayerToPoint(this CharacterDialogueTree characterDialogueTree, OWRigidbody rigidbody)
|
||||
{
|
||||
if (characterDialogueTree.InConversation())
|
||||
{
|
||||
characterDialogueTree.EndConversation();
|
||||
}
|
||||
}
|
||||
|
||||
[HarmonyPostfix]
|
||||
[HarmonyPatch(nameof(CharacterDialogueTree.StartConversation))]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user