forked from Mirrorlandia_minetest/minetest
Enable shift-click crafting (#13729)
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user