Skip to content

Commit

Permalink
Fix 35806d6, which broke the selection of fluid ingredient variants. (#…
Browse files Browse the repository at this point in the history
…136)

In 35806d6, I changed `recipe.links.ingredientGoods[i]` to
`ingredient.goods`, and that broke this dropdown in the ingredients
column.

![image](https://github.com/have-fun-was-taken/yafc-ce/assets/21223975/fd44a559-46bc-41a6-bc1f-7ff7fe0aa3a1)

This changes it back and fixes the dropdown.
  • Loading branch information
shpaass authored May 23, 2024
2 parents 4e31251 + 59eb220 commit d2a36bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Yafc/Workspace/ProductionTable/ProductionTableView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ public override void BuildElement(ImGui gui, RecipeRow recipe) {
for (int i = 0; i < recipe.recipe.ingredients.Length; i++) {
var ingredient = recipe.recipe.ingredients[i];
var link = recipe.hierarchyEnabled ? recipe.links.ingredients[i] : null;
var goods = recipe.hierarchyEnabled ? ingredient.goods : null;
var goods = recipe.hierarchyEnabled ? recipe.links.ingredientGoods[i] : null;
grid.Next();
view.BuildGoodsIcon(gui, goods, link, (float)(ingredient.amount * recipe.recipesPerSecond), ProductDropdownType.Ingredient, recipe, recipe.linkRoot, ingredient.variants);
}
Expand Down

0 comments on commit d2a36bf

Please sign in to comment.