Skip to content

Commit

Permalink
Patched GUI bug
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFP committed Sep 12, 2023
1 parent ed41c10 commit 3bf9589
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ class GUIListener(private val plugin: EcoPlugin) : Listener {
fun handleClose(event: InventoryCloseEvent) {
val menu = event.inventory.getMenu() as? EcoMenu ?: return

menu.refresh(event.player as Player)

menu.handleClose(event)

plugin.scheduler.run { MenuHandler.unregisterInventory(event.inventory) }
Expand Down

0 comments on commit 3bf9589

Please sign in to comment.