Skip to content

Commit

Permalink
Fix shift click issue (#1821)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yusarnn authored Feb 12, 2025
1 parent 7dd3627 commit 19bc14d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ protected void fillInputSlots(RecipeFinder recipeFinder, NonNullList<Ingredient>
int finalCraftsAmount = amountToFill;

for (int itemId : recipeItemIds) {
// Fix issue with empty item id (grid slot) [shift-click issue]
if (itemId == 0) {
continue;
}
finalCraftsAmount = Math.min(finalCraftsAmount, RecipeFinder.getStackFromId(itemId).getMaxStackSize());
}

Expand Down

0 comments on commit 19bc14d

Please sign in to comment.