Skip to content

Commit

Permalink
fix recipe display for shaped recipes with unfilled slots in their su…
Browse files Browse the repository at this point in the history
…bgrid
  • Loading branch information
gliscowo committed Jan 20, 2025
1 parent a406a12 commit 96ff335
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ org.gradle.jvmargs=-Xmx1G
loader_version=0.16.9

# Mod Properties
mod_version = 0.1.14
mod_version = 0.1.15
maven_group = io.wispforest
archives_base_name = lavender

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,10 @@ default void populateIngredientsGrid(RecipeEntry<R> recipe, ParentComponent comp
var ingredients = recipe.value().getIngredientPlacement().getIngredients();
RecipeGridAligner.alignRecipeToGrid(gridWidth, gridHeight, recipe.value(), recipe.value().getIngredientPlacement().getPlacementSlots(), (input, index, x, y) -> {
if (!(componentContainer.children().get(index) instanceof ItemListComponent ingredient)) return;
ingredient.ingredient(ingredients.get(input));

if (input >= 0) {
ingredient.ingredient(ingredients.get(input));
}
});
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ page 4

page 5

<recipe;minecraft:clock>
<recipe;minecraft:stick>

;;;;;
Expand Down

0 comments on commit 96ff335

Please sign in to comment.