Chef update (#11189)
* Sort recipes based on total ingredient count Fix the recipe sort function so that recipes with more ingredients are matched first. This fixes vegetable pizzas and allows more complex recipes in the future. * Chef update * Pet linter
This commit is contained in:
@@ -45,7 +45,9 @@ namespace Content.Shared.Kitchen
|
||||
return 0;
|
||||
}
|
||||
|
||||
return -x.IngredientsReagents.Count.CompareTo(y.IngredientsReagents.Count);
|
||||
var nx = x.IngredientCount();
|
||||
var ny = y.IngredientCount();
|
||||
return -nx.CompareTo(ny);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user