mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
add enhancement #2
This commit is contained in:
parent
53355c4b7b
commit
dfff6f5dd7
1 changed files with 3 additions and 4 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue