Skip to content

Commit

Permalink
fix AContainer can't find recipes with similar items
Browse files Browse the repository at this point in the history
  • Loading branch information
lijinhong11 committed Apr 18, 2024
1 parent 45601c8 commit 37d2129
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,8 @@ protected MachineRecipe findNextRecipe(BlockMenu inv) {
for (ItemStack input : recipe.getInput()) {
for (int slot : getInputSlots()) {
if (SlimefunUtils.isItemSimilar(inventory.get(slot), input, true)) {
if (found.containsKey(slot)) continue; //skip scanned slots

found.put(slot, input.getAmount());
break;
}
Expand Down

0 comments on commit 37d2129

Please sign in to comment.