Treat DeclarativeRecipe specially when loading recipe from descriptor
This commit is contained in:
@@ -53,7 +53,7 @@ public class LoadUtils {
|
||||
|
||||
public static Recipe createRecipe(RecipeDescriptor d, Function<String, Class<? extends Recipe>> getRecipeClass) {
|
||||
Class<? extends Recipe> recipeClazz = getRecipeClass.apply(d.getName());
|
||||
if (recipeClazz == null) {
|
||||
if (recipeClazz == null || DeclarativeRecipe.class.getName().equals(recipeClazz.getName())) {
|
||||
DeclarativeRecipe recipe = new DeclarativeRecipe(d.getName(), d.getDisplayName(), d.getDescription(),
|
||||
d.getTags(), d.getEstimatedEffortPerOccurrence(), d.getSource(), false);
|
||||
for (RecipeDescriptor subDescriptor : d.getRecipeList()) {
|
||||
|
||||
Reference in New Issue
Block a user