Skip to content
This repository was archived by the owner on Apr 22, 2019. It is now read-only.

Commit 14d3be3

Browse files
committed
Fix shift clicking
1 parent d7c0cc5 commit 14d3be3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/com/pahimar/ee3/inventory/ContainerTransmutationTablet.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,15 +347,16 @@ else if (slot.isItemValid(itemStack1) && ItemStackUtils.equalsIgnoreStackSize(it
347347
if (combinedStackSize <= slotStackSizeLimit) {
348348

349349
stackInSlot.stackSize = combinedStackSize;
350-
numTransmuted = stackInSlot.stackSize - itemStack1.stackSize;
350+
numTransmuted = itemStack1.stackSize;
351351
itemStack1.stackSize = 0;
352352
slot.onSlotChanged();
353353
}
354354
else if (stackInSlot.stackSize < slotStackSizeLimit) {
355355

356356
itemStack1.stackSize -= slotStackSizeLimit - stackInSlot.stackSize;
357357
stackInSlot.stackSize = slotStackSizeLimit;
358-
numTransmuted = stackInSlot.stackSize - itemStack1.stackSize;
358+
numTransmuted = itemStack1.stackSize;
359+
itemStack1.stackSize = 0;
359360
slot.onSlotChanged();
360361
}
361362
}

0 commit comments

Comments
 (0)