Fix logistical sorter handling with less than full stacks.

Fixes #4527
This commit is contained in:
Tom Elfring committed 2017-07-16 20:12:48 +02:00
1 parent 8a22312cbf
commit 768019c03f
1 file changed
+1 -1
@@ -77,7 +77,7 @@ public final class InvStack
}
else {
ItemStack ret = stack.copy();
ret.setCount(inventory.getStackInSlot(slotIDs.get(i)).getCount() - stack.getCount());
ret.setCount(inventory.getStackInSlot(slotIDs.get(i)).getCount() - amount);
inventory.setInventorySlotContents(slotIDs.get(i), ret);
amount -= stack.getCount();
}