Skip to content

Commit

Permalink
Do not try to register abstract classes as recipeManager
Browse files Browse the repository at this point in the history
  • Loading branch information
kindlich committed Nov 5, 2020
1 parent 097ac9d commit 12d940b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -39,7 +39,7 @@ public List<Class<? extends IRecipeManager>> getRecipeManagers() {
//noinspection unchecked
return allRegisteredClasses.stream()
.filter(IRecipeManager.class::isAssignableFrom)
.filter(cls -> !cls.isInterface())
.filter(cls -> !cls.isInterface() && !Modifier.isAbstract(cls.getModifiers()))
.map(cls -> (Class<? extends IRecipeManager>) cls)
.collect(Collectors.toList());
}
Expand Down

0 comments on commit 12d940b

Please sign in to comment.