Merge pull request #4534 from thommy101/issue-4527

[1.11] Fix logistical sorter handling with less than full stacks.
This commit is contained in:
Aidan authored and GitHub committed 2017-07-17 08:50:16 -07:00
commit 901694bb26
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();
}