From: SmallJoker Date: Sat, 25 May 2019 15:37:54 +0000 (+0200) Subject: Do not drag-place stack into 'craftpreview' slot (#8514) X-Git-Tag: 5.1.0~210 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=627a96cd9994cd75d490149f6e4a646c6eee3a3c;p=oweals%2Fminetest.git Do not drag-place stack into 'craftpreview' slot (#8514) --- diff --git a/src/gui/guiFormSpecMenu.cpp b/src/gui/guiFormSpecMenu.cpp index e2aed420c..0514ffbbe 100644 --- a/src/gui/guiFormSpecMenu.cpp +++ b/src/gui/guiFormSpecMenu.cpp @@ -3410,7 +3410,7 @@ bool GUIFormSpecMenu::OnEvent(const SEvent& event) // Mouse has been moved and rmb is down and mouse pointer just // entered a new inventory field (checked in the entry-if, this // is the only action here that is generated by mouse movement) - if (m_selected_item && s.isValid()) { + if (m_selected_item && s.isValid() && s.listname != "craftpreview") { // Move 1 item // TODO: middle mouse to move 10 items might be handy if (m_auto_place) {