mirror of
https://github.com/moparisthebest/minetest
synced 2024-12-22 07:38:48 -05:00
Dont move item back when not clicking on a slot
This commit is contained in:
parent
1309e52198
commit
60113bde74
@ -2462,12 +2462,7 @@ bool GUIFormSpecMenu::OnEvent(const SEvent& event)
|
||||
move_amount = 0;
|
||||
}
|
||||
}
|
||||
else if(getAbsoluteClippingRect().isPointInside(m_pointer))
|
||||
{
|
||||
// Clicked somewhere else: deselect
|
||||
m_selected_amount = 0;
|
||||
}
|
||||
else
|
||||
else if (!getAbsoluteClippingRect().isPointInside(m_pointer))
|
||||
{
|
||||
// Clicked outside of the window: drop
|
||||
if(button == 1) // right
|
||||
|
Loading…
Reference in New Issue
Block a user