Skip to content

Commit 4960747

Browse files
committed
修复alt点击无样板的物品时也能打开合成数量GUI的问题
1 parent 4928d10 commit 4960747

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/glodblock/github/util/UtilClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public static boolean shouldAutoCraft(final Slot slot, final int mouseButton, fi
5656
action = (mouseButton == 1) ? InventoryAction.SPLIT_OR_PLACE_SINGLE : InventoryAction.PICKUP_OR_SET_DOWN;
5757
stack = ((SlotME) slot).getAEStack();
5858
if (stack != null && action == InventoryAction.PICKUP_OR_SET_DOWN
59-
&& (stack.getStackSize() == 0 || GuiScreen.isAltKeyDown())
59+
&& (stack.getStackSize() == 0 || (GuiScreen.isAltKeyDown() && stack.isCraftable()))
6060
&& player.inventory.getItemStack().isEmpty()) {
6161
return true;
6262
}

0 commit comments

Comments
 (0)