Skip to content

Commit dcc6a54

Browse files
committed
fix(common): not handling disabled recipes
1 parent 472a96b commit dcc6a54

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

common/src/main/kotlin/com/wolfyscript/customcrafting/recipes/RecipeManagerCommon.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ class RecipeManagerCommon(val customCrafting: CustomCraftingCommon) : RecipeMana
144144
): RecipeEvaluationResult<D, T>? {
145145
val recipes: Collection<RecipeReference<T>> = index.byType(type)
146146
for (recipe in recipes) {
147+
if (isRecipeDisabled(recipe.key)) {
148+
continue
149+
}
147150
val data = recipe.value?.evaluate(input, context) ?: continue
148151
return RecipeEvaluationResultImpl(recipe, data)
149152
}

0 commit comments

Comments
 (0)