Dialogue interpreter brrrr

This commit is contained in:
ceikry
2021-07-30 08:01:53 -05:00
parent 46f8afb289
commit 8f24b62277
+1
View File
@@ -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)