Dialogue interpreter brrrr

This commit is contained in:
ceikry 2021-07-30 08:01:53 -05:00
parent b445a77810
commit 4b800645b3

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)