From 30ba511c58652c0abfe6316ce02ef868cb64a5de Mon Sep 17 00:00:00 2001 From: huanmeng_qwq Date: Mon, 11 Nov 2024 11:38:20 +0800 Subject: [PATCH] Update PaperEventListener.java --- .../opensource/bukkit/gui/listener/PaperEventListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/me/huanmeng/opensource/bukkit/gui/listener/PaperEventListener.java b/core/src/main/java/me/huanmeng/opensource/bukkit/gui/listener/PaperEventListener.java index ed8e7b7..90742e6 100644 --- a/core/src/main/java/me/huanmeng/opensource/bukkit/gui/listener/PaperEventListener.java +++ b/core/src/main/java/me/huanmeng/opensource/bukkit/gui/listener/PaperEventListener.java @@ -28,7 +28,7 @@ public class PaperEventListener implements Listener { REASON_CLASS = Class.forName("org.bukkit.event.inventory.InventoryCloseEvent$Reason"); REASON_OPEN_NEW = Enum.valueOf(REASON_CLASS, "OPEN_NEW"); - GET_REASON_METHOD = lookup.unreflect(InventoryCloseEvent.class.getDeclaredMethod("getReason", REASON_CLASS)); + GET_REASON_METHOD = lookup.unreflect(InventoryCloseEvent.class.getDeclaredMethod("getReason")); } catch (NoSuchMethodException | ClassNotFoundException | IllegalAccessException e) { throw new ExceptionInInitializerError(e); }