Skip to content

Commit

Permalink
fix(plugin): voucher dupe bug in ConfirmationGui
Browse files Browse the repository at this point in the history
  • Loading branch information
iGabyTM committed Jun 5, 2023
1 parent 72f194e commit 09ccf02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 09ccf02

Please sign in to comment.