Dialogue interpreter brrrr
This commit is contained in:
@@ -565,6 +565,7 @@ object ContentAPI {
|
|||||||
*/
|
*/
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
fun openDialogue(player: Player, dialogue: Any, vararg args: Any) {
|
fun openDialogue(player: Player, dialogue: Any, vararg args: Any) {
|
||||||
|
player.dialogueInterpreter.close()
|
||||||
when (dialogue) {
|
when (dialogue) {
|
||||||
is Int -> player.dialogueInterpreter.open(dialogue, *args)
|
is Int -> player.dialogueInterpreter.open(dialogue, *args)
|
||||||
is DialogueFile -> player.dialogueInterpreter.open(dialogue, *args)
|
is DialogueFile -> player.dialogueInterpreter.open(dialogue, *args)
|
||||||
|
|||||||
Reference in New Issue
Block a user