From 65724f1313a9f65265214e6186337ed22b21b275 Mon Sep 17 00:00:00 2001 From: miyabi0333 <57523862+Arisa9006@users.noreply.github.com> Date: Mon, 18 Nov 2024 02:20:58 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=AA=E3=82=B9=E3=83=8A=E3=83=BC=E3=81=AE?= =?UTF-8?q?=E3=83=9F=E3=82=B9=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/dev/felnull/bettergui/listener/GUIClickListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dev/felnull/bettergui/listener/GUIClickListener.java b/src/main/java/dev/felnull/bettergui/listener/GUIClickListener.java index 07aa14b..7fb5bdb 100644 --- a/src/main/java/dev/felnull/bettergui/listener/GUIClickListener.java +++ b/src/main/java/dev/felnull/bettergui/listener/GUIClickListener.java @@ -88,7 +88,7 @@ public void onClick(InventoryClickEvent e){ @EventHandler public void onClose(InventoryCloseEvent e){ - if(e.getInventory() != page.inventory) return; + if(e.getView().getTopInventory() != page.inventory) return; page.close(); } }