diff --git a/src/main/java/com/buuz135/industrial/plugin/jei/category/DissolutionChamberCategory.java b/src/main/java/com/buuz135/industrial/plugin/jei/category/DissolutionChamberCategory.java index 52ee9ba34..11e7fcca2 100644 --- a/src/main/java/com/buuz135/industrial/plugin/jei/category/DissolutionChamberCategory.java +++ b/src/main/java/com/buuz135/industrial/plugin/jei/category/DissolutionChamberCategory.java @@ -47,6 +47,7 @@ import net.minecraft.network.chat.Component; import net.minecraft.world.item.DyeColor; import net.minecraft.world.item.ItemStack; +import net.minecraft.world.item.crafting.Ingredient; import org.apache.commons.lang3.tuple.Pair; import java.awt.*; @@ -89,7 +90,9 @@ public IDrawable getIcon() { public void setRecipe(IRecipeLayoutBuilder builder, DissolutionChamberRecipe recipe, IFocusGroup focuses) { for (int i = 0; i < 8; i++) { if (i < recipe.input.length) { - builder.addSlot(RecipeIngredientRole.INPUT, 24 + DissolutionChamberTile.getSlotPos(i).getLeft(), 11 + DissolutionChamberTile.getSlotPos(i).getRight()).addIngredients(VanillaTypes.ITEM_STACK, recipe.input[i].getItems().stream().toList()); + ItemStack stack = recipe.input[i].getItems().stream().toList().get(0); + stack.getItem().onCraftedBy(stack, null, null); + builder.addSlot(RecipeIngredientRole.INPUT, 24 + DissolutionChamberTile.getSlotPos(i).getLeft(), 11 + DissolutionChamberTile.getSlotPos(i).getRight()).addIngredients(Ingredient.of(stack)); } } if (recipe.inputFluid != null && !recipe.inputFluid.isEmpty()) { diff --git a/src/main/java/com/buuz135/industrial/recipe/DissolutionChamberRecipe.java b/src/main/java/com/buuz135/industrial/recipe/DissolutionChamberRecipe.java index afd159d02..e713b3dc1 100644 --- a/src/main/java/com/buuz135/industrial/recipe/DissolutionChamberRecipe.java +++ b/src/main/java/com/buuz135/industrial/recipe/DissolutionChamberRecipe.java @@ -81,7 +81,7 @@ public boolean matches(IItemHandler handler, FluidTankComponent tank) { for (ItemStack stack : iItemList.getItems()) { int i = 0; for (; i < handlerItems.size(); i++) { - if (handlerItems.get(i).sameItem(stack)) { + if (ItemStack.isSameItemSameTags(handlerItems.get(i), stack)) { found = true; break; }