add shift click to move a whole stack to trade window

This commit is contained in:
trunksbomb
2026-03-25 12:31:39 -04:00
parent 89d6545533
commit 9cb4979662

View File

@@ -197,6 +197,8 @@ public class TradeScreen extends AbstractContainerScreen<TradeScreen.TradeMenu>
if (hoveredSlot instanceof GhostInventorySlot ghostInventorySlot) {
if (button == 1) {
openContextMenu(mouseX, mouseY, TradeAction.ADD_ITEM, ghostInventorySlot.inventoryIndex(), hoveredSlot.getItem(), "Trade");
} else if (hasShiftDown()) {
sendAction(TradeAction.ADD_ITEM, ghostInventorySlot.inventoryIndex(), hoveredSlot.getItem().getCount());
} else {
sendAction(TradeAction.ADD_ITEM, ghostInventorySlot.inventoryIndex(), 1);
}