Overlay Button moves one item if the recipe stack is size zero (#985)

This commit is contained in:
koolkrafter5 authored and GitHub committed 2026-07-26 23:28:39 +03:00
1 parent 2b28068382
commit 384813347c
1 file changed
+1 -1
@@ -210,7 +210,7 @@ public class DefaultOverlayHandler implements IOverlayHandler {
for (IngredientDistribution distrib : assignedIngredients) {
if (distrib.slots.length == 0 || !slot.getHasStack() || !canStack(distrib.permutation, stack)) continue;
int transferCap = Math.min(slotTransferCap, multiplier * distrib.permutation.stackSize);
int transferCap = Math.min(slotTransferCap, Math.max(multiplier * distrib.permutation.stackSize, 1));
int stackSize = slot.getStack().stackSize;
boolean pickup = false;