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();