From dfff6f5dd7dfc6e2d72f5f4dc54710447d7ed625 Mon Sep 17 00:00:00 2001 From: neveix Date: Fri, 14 Aug 2026 02:08:51 +0500 Subject: [PATCH] add enhancement #2 --- src/graphics/ui/elements/InventoryView.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/graphics/ui/elements/InventoryView.cpp b/src/graphics/ui/elements/InventoryView.cpp index 4204cfa25..0cf482a0d 100644 --- a/src/graphics/ui/elements/InventoryView.cpp +++ b/src/graphics/ui/elements/InventoryView.cpp @@ -376,11 +376,10 @@ void SlotView::performLeftClick(ItemStack& stack, ItemStack& grabbed) { if (layout.itemSource) { if (grabbed.isEmpty()) { action = InteractionAction::TAKE; - if (input.pressed(Keycode::LEFT_CONTROL)) { - stack.maximizeCount(*content->getIndices()); - std::cout << "maximized grabbed item" << std::endl; - } grabbed.set(stack); + if (input.pressed(Keycode::LEFT_CONTROL)) { + grabbed.maximizeCount(*content->getIndices()); + } } else { action = InteractionAction::PUT; grabbed.clear();