mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
Merge pull request #4534 from thommy101/issue-4527
[1.11] Fix logistical sorter handling with less than full stacks.
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user