From 60584a3f578817dbe6a15fb122439e6b50c526b1 Mon Sep 17 00:00:00 2001 From: CyberedCake <61170080+CyberedCake@users.noreply.github.com> Date: Tue, 18 Jun 2024 23:02:18 -0400 Subject: [PATCH] Change one character for a fix... --- .../java/net/cybercake/cyberapi/spigot/inventory/CustomGUI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spigot/src/main/java/net/cybercake/cyberapi/spigot/inventory/CustomGUI.java b/spigot/src/main/java/net/cybercake/cyberapi/spigot/inventory/CustomGUI.java index 061d153..db841d1 100644 --- a/spigot/src/main/java/net/cybercake/cyberapi/spigot/inventory/CustomGUI.java +++ b/spigot/src/main/java/net/cybercake/cyberapi/spigot/inventory/CustomGUI.java @@ -262,7 +262,7 @@ protected CustomGUI(@NotNull InventoryType type) { * @param handler the handler, which will supply the {@link Exception exception that occurred}, the {@link Event event}, and the {@link Player player} * @since 179 */ - public void addErrorHandler(Class event, GUIErrorHandler handler) { + public void addErrorHandler(Class event, GUIErrorHandler handler) { List> allowedTypes = List.of(InventoryClickEvent.class, InventoryOpenEvent.class, InventoryCloseEvent.class); Preconditions.checkArgument( allowedTypes.contains(event),