From 3bf9589cd2a21803b127d2ec7e7415c2c6f12bfb Mon Sep 17 00:00:00 2001 From: Auxilor Date: Tue, 12 Sep 2023 16:51:20 +0100 Subject: [PATCH] Patched GUI bug --- .../kotlin/com/willfp/eco/internal/spigot/gui/GUIListener.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/gui/GUIListener.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/gui/GUIListener.kt index c4dd97d3b..944e26307 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/gui/GUIListener.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/gui/GUIListener.kt @@ -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) }