mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Dont move item back when not clicking on a slot
This commit is contained in:
parent
1309e52198
commit
60113bde74
1 changed files with 1 additions and 6 deletions
|
@ -2462,12 +2462,7 @@ bool GUIFormSpecMenu::OnEvent(const SEvent& event)
|
||||||
move_amount = 0;
|
move_amount = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(getAbsoluteClippingRect().isPointInside(m_pointer))
|
else if (!getAbsoluteClippingRect().isPointInside(m_pointer))
|
||||||
{
|
|
||||||
// Clicked somewhere else: deselect
|
|
||||||
m_selected_amount = 0;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
// Clicked outside of the window: drop
|
// Clicked outside of the window: drop
|
||||||
if(button == 1) // right
|
if(button == 1) // right
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue