From 8f24b622778d1b3055b29a0128b72842d788ad06 Mon Sep 17 00:00:00 2001 From: ceikry Date: Fri, 30 Jul 2021 08:01:53 -0500 Subject: [PATCH] Dialogue interpreter brrrr --- Server/src/main/kotlin/api/ContentAPI.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/Server/src/main/kotlin/api/ContentAPI.kt b/Server/src/main/kotlin/api/ContentAPI.kt index b47200e24..a7b5d5c07 100644 --- a/Server/src/main/kotlin/api/ContentAPI.kt +++ b/Server/src/main/kotlin/api/ContentAPI.kt @@ -565,6 +565,7 @@ object ContentAPI { */ @JvmStatic fun openDialogue(player: Player, dialogue: Any, vararg args: Any) { + player.dialogueInterpreter.close() when (dialogue) { is Int -> player.dialogueInterpreter.open(dialogue, *args) is DialogueFile -> player.dialogueInterpreter.open(dialogue, *args)