summaryrefslogtreecommitdiffstats
path: root/src/UI
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-05-31 00:25:20 +0200
committerHowaner <franzi.moos@googlemail.com>2014-05-31 00:25:20 +0200
commitd422aa4081cd5c64ab0df4017630674a245c701d (patch)
tree7131034c2c8724ed7c12c6d1c344b9bf2728089d /src/UI
parentChange "Slot.IsEmpty()" to "Slot.m_ItemCount <= 0" (diff)
downloadcuberite-d422aa4081cd5c64ab0df4017630674a245c701d.tar
cuberite-d422aa4081cd5c64ab0df4017630674a245c701d.tar.gz
cuberite-d422aa4081cd5c64ab0df4017630674a245c701d.tar.bz2
cuberite-d422aa4081cd5c64ab0df4017630674a245c701d.tar.lz
cuberite-d422aa4081cd5c64ab0df4017630674a245c701d.tar.xz
cuberite-d422aa4081cd5c64ab0df4017630674a245c701d.tar.zst
cuberite-d422aa4081cd5c64ab0df4017630674a245c701d.zip
Diffstat (limited to 'src/UI')
-rw-r--r--src/UI/SlotArea.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/UI/SlotArea.cpp b/src/UI/SlotArea.cpp
index 3acc49cde..7c79e290a 100644
--- a/src/UI/SlotArea.cpp
+++ b/src/UI/SlotArea.cpp
@@ -1397,11 +1397,6 @@ void cSlotAreaFurnace::Clicked(cPlayer & a_Player, int a_SlotNum, eClickAction a
return;
}
- if (a_ClickAction == caDblClick)
- {
- return;
- }
-
if ((a_ClickAction == caShiftLeftClick) || (a_ClickAction == caShiftRightClick))
{
ShiftClicked(a_Player, a_SlotNum, a_ClickedItem);
@@ -1419,6 +1414,10 @@ void cSlotAreaFurnace::Clicked(cPlayer & a_Player, int a_SlotNum, eClickAction a
if (!DraggingItem.IsEmpty())
{
+ if (a_ClickAction == caDblClick)
+ {
+ return;
+ }
if (!DraggingItem.IsEqual(Slot))
{
return;