Skip to content

Commit

Permalink
Change one character for a fix...
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberedCake committed Jun 19, 2024
1 parent 3722183 commit 60584a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 <E extends Event> void addErrorHandler(Class<E> event, GUIErrorHandler<?> handler) {
public <E extends Event> void addErrorHandler(Class<E> event, GUIErrorHandler<E> handler) {
List<Class<?>> allowedTypes = List.of(InventoryClickEvent.class, InventoryOpenEvent.class, InventoryCloseEvent.class);
Preconditions.checkArgument(
allowedTypes.contains(event),
Expand Down

0 comments on commit 60584a3

Please sign in to comment.