Skip to content

Commit

Permalink
Update PaperEventListener.java
Browse files Browse the repository at this point in the history
  • Loading branch information
huanmeng-qwq authored Nov 11, 2024
1 parent 5bbd571 commit 30ba511
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 30ba511

Please sign in to comment.