Add/change recipes by plugin

This commit is contained in:
Sn0wStorm
2019-11-09 17:02:48 +01:00
parent 81ea014e45
commit 318963b379
12 changed files with 697 additions and 41 deletions
+2 -2
View File
@@ -203,7 +203,7 @@ public class BIngredients {
int woodQuality;
int ageQuality;
BRecipe bestRecipe = null;
for (BRecipe recipe : BRecipe.recipes) {
for (BRecipe recipe : BRecipe.getAllRecipes()) {
ingredientQuality = getIngredientQuality(recipe);
cookingQuality = getCookingQuality(recipe, distilled);
@@ -258,7 +258,7 @@ public class BIngredients {
BCauldronRecipe best = null;
float bestMatch = 0;
float match;
for (BCauldronRecipe recipe : BCauldronRecipe.recipes) {
for (BCauldronRecipe recipe : BCauldronRecipe.getAllRecipes()) {
match = recipe.getIngredientMatch(ingredients);
if (match >= 10) {
return recipe;