Skip to content

Commit

Permalink
Update AContainer.java
Browse files Browse the repository at this point in the history
  • Loading branch information
mcchampions committed Oct 6, 2024
1 parent d7462c6 commit 0cb59b6
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -403,18 +403,16 @@ protected MachineRecipe findNextRecipe(BlockMenu inv) {
}
}

if (found.size() == recipe.getInput().length) {
if (found.size() != recipe.getInput().length) {
found.clear();
continue;
}
if (!InvUtils.fitAll(inv.toInventory(), recipe.getOutput(), getOutputSlots())) {
return null;
}

for (Map.Entry<Integer, Integer> entry : found.entrySet()) {
inv.consumeItem(entry.getKey(), entry.getValue());
}

return recipe;
}

Expand Down

0 comments on commit 0cb59b6

Please sign in to comment.