Fix TiCo Crafting Stations not working with compressed chests (#435)

* [major] fixes compressed chests not working with the tico crafting station

* [minor] comply with review + bs
This commit is contained in:
Nico Spiske authored and GitHub committed 2023-11-03 17:19:51 +09:00
1 parent 74d98a86f3
commit b011024164
2 files changed
+3 -3

No files matched your search

@@ -118,8 +118,8 @@ public class DefaultOverlayHandler implements IOverlayHandler {
ItemStack stack = slot.getStack();
if (!canStack(stack, pstack)) continue;
FastTransferManager.clickSlot(gui, slot.slotNumber);
int amount = Math.min(transferCap - transferred, stack.stackSize);
FastTransferManager.clickSlot(gui, slot.slotNumber);
for (int c = 0; c < amount; c++) {
FastTransferManager.clickSlot(gui, dest.slotNumber, 1);
transferred++;