fix some craftable items getting not showing as craftable in JEI

This commit is contained in:
Darkere
2022-12-27 21:32:56 +01:00
committed by Raoul
parent 93cead379c
commit 1ac11ad5d3
2 changed files with 7 additions and 1 deletions

View File

@@ -7,6 +7,10 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Fixed
- Fixed some craftable items not showing as craftable in JEI
## [v1.11.4] - 2022-12-20
### Fixed

View File

@@ -164,7 +164,9 @@ public class IngredientTracker {
for (Ingredient ingredient : ingredientList.ingredients) {
ingredient.getSlotView().getIngredients(VanillaTypes.ITEM_STACK).takeWhile(stack -> !ingredient.isAvailable()).forEach(stack -> {
ingredient.setCraftStackId(craftableItems.get(new ItemStackKey(stack)));
if(ingredient.getCraftStackId() == null) {
ingredient.setCraftStackId(craftableItems.get(new ItemStackKey(stack)));
}
// Check grid crafting slots
if (gridContainer.getGrid().getGridType().equals(GridType.CRAFTING)) {
CraftingContainer craftingMatrix = gridContainer.getGrid().getCraftingMatrix();