mirror of
https://github.com/minetest/minetest.git
synced 2024-12-28 08:57:30 +01:00
Enable shift-click crafting (#13729)
This commit is contained in:
parent
587e2b2526
commit
d0ee63c766
@ -4312,10 +4312,7 @@ bool GUIFormSpecMenu::OnEvent(const SEvent& event)
|
||||
if (button == BET_MIDDLE)
|
||||
craft_amount = 10;
|
||||
else if (event.MouseInput.Shift && button == BET_LEFT)
|
||||
// TODO: We should craft everything with shift-left-click,
|
||||
// but the slow crafting code limits us, so we only craft one
|
||||
craft_amount = 1;
|
||||
//craft_amount = list_s->getItem(s.i).getStackMax(m_client->idef());
|
||||
craft_amount = list_s->getItem(s.i).getStackMax(m_client->idef());
|
||||
else
|
||||
craft_amount = 1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user