mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +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 (layout.itemSource) {
|
||||||
if (grabbed.isEmpty()) {
|
if (grabbed.isEmpty()) {
|
||||||
action = InteractionAction::TAKE;
|
action = InteractionAction::TAKE;
|
||||||
if (input.pressed(Keycode::LEFT_CONTROL)) {
|
|
||||||
stack.maximizeCount(*content->getIndices());
|
|
||||||
std::cout << "maximized grabbed item" << std::endl;
|
|
||||||
}
|
|
||||||
grabbed.set(stack);
|
grabbed.set(stack);
|
||||||
|
if (input.pressed(Keycode::LEFT_CONTROL)) {
|
||||||
|
grabbed.maximizeCount(*content->getIndices());
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
action = InteractionAction::PUT;
|
action = InteractionAction::PUT;
|
||||||
grabbed.clear();
|
grabbed.clear();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue