Skip to content

Commit

Permalink
Fix #42
Browse files Browse the repository at this point in the history
  • Loading branch information
0hwx committed Jan 17, 2025
1 parent 6891208 commit 79ff2d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/yalter/mousetweaks/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import java.util.List;

import com.cleanroommc.bogosorter.common.sort.IGuiContainerAccessor;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.gui.inventory.GuiContainer;
Expand Down Expand Up @@ -175,8 +176,8 @@ && areStacksCompatible(stackOnMouse, targetStack)) {
} else {
// If shift is not down, we need to merge the item stack on the mouse with the one in
// the slot.
if ((stackOnMouse.stackSize + targetStack.stackSize)
<= stackOnMouse.getMaxStackSize()) {
if ((((IGuiContainerAccessor) currentScreen).getDragSplitting() == false) && (stackOnMouse.stackSize + targetStack.stackSize)
<= stackOnMouse.getMaxStackSize()) {
// We need to click on the slot so that our item stack gets merged with it, and
// then click again to return the stack to the mouse. However, if the slot is
// crafting output, then the item is added to the mouse stack on the first click
Expand Down

0 comments on commit 79ff2d2

Please sign in to comment.