diff --git a/plugin/build.gradle b/plugin/build.gradle index b07594c..80ea1c4 100644 --- a/plugin/build.gradle +++ b/plugin/build.gradle @@ -52,7 +52,7 @@ dependencies { implementation 'net.kyori:adventure-text-minimessage:4.13.0' // GUis and commands - implementation 'dev.triumphteam:triumph-gui:3.1.3' + implementation 'dev.triumphteam:triumph-gui:3.1.5' implementation 'me.mattstudios.utils:matt-framework:1.4.6' // Heads diff --git a/plugin/src/main/kotlin/me/gabytm/minecraft/arcanevouchers/voucher/ConfirmationGui.kt b/plugin/src/main/kotlin/me/gabytm/minecraft/arcanevouchers/voucher/ConfirmationGui.kt index bcfec92..0b25d5c 100644 --- a/plugin/src/main/kotlin/me/gabytm/minecraft/arcanevouchers/voucher/ConfirmationGui.kt +++ b/plugin/src/main/kotlin/me/gabytm/minecraft/arcanevouchers/voucher/ConfirmationGui.kt @@ -70,6 +70,7 @@ class ConfirmationGui(private val plugin: ArcaneVouchers) { .disableAllInteractions() .create() + gui.setDefaultClickAction { it.isCancelled = true } this.otherButtons.forEach { gui.setItem(it.slots, it.item) } gui.setItem(this.cancelButton.slots, this.cancelButton.item)