Skip to content

Commit df95098

Browse files
committed
Fix closing inventory on saying no in shop confirmation GUI
1 parent 11f54ef commit df95098

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

VotingPlugin/src/main/java/com/bencodez/votingplugin/commands/gui/player/VoteShopConfirm.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public void onClick(ClickEvent event) {
9292
@Override
9393
public void onClick(ClickEvent event) {
9494
if (item.isCloseGUI()) {
95-
event.getButton().getInv().closeInv(player, null);
95+
event.closeInventory()
9696
} else {
9797
returnToPrevious(event.getPlayer());
9898
}

0 commit comments

Comments
 (0)