forked from Mirrorlandia_minetest/minetest
+ middle-click now empties the inventory slot properly
This commit is contained in:
parent
9af0142a36
commit
a465fd5b99
@ -386,7 +386,7 @@ bool GUIInventoryMenu::OnEvent(const SEvent& event)
|
|||||||
//ispec.actions->push_back(a);
|
//ispec.actions->push_back(a);
|
||||||
m_invmgr->inventoryAction(a);
|
m_invmgr->inventoryAction(a);
|
||||||
|
|
||||||
if(list_from->getItem(m_selected_item->i)->getCount()==1)
|
if(list_from->getItem(m_selected_item->i)->getCount()<=amount)
|
||||||
source_empties = true;
|
source_empties = true;
|
||||||
}
|
}
|
||||||
// Remove selection if target was left-clicked or source
|
// Remove selection if target was left-clicked or source
|
||||||
|
Loading…
Reference in New Issue
Block a user