Skip to content

Commit 19bc14d

Browse files
authored
Fix shift click issue (#1821)
1 parent 7dd3627 commit 19bc14d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

runtime/src/main/java/me/shedaniel/rei/impl/common/transfer/InputSlotCrafter.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ protected void fillInputSlots(RecipeFinder recipeFinder, NonNullList<Ingredient>
139139
int finalCraftsAmount = amountToFill;
140140

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

0 commit comments

Comments
 (0)