diff options
Diffstat (limited to 'src/Bindings')
-rw-r--r-- | src/Bindings/LuaWindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Bindings/LuaWindow.cpp b/src/Bindings/LuaWindow.cpp index f19e9ab7c..a81021475 100644 --- a/src/Bindings/LuaWindow.cpp +++ b/src/Bindings/LuaWindow.cpp @@ -218,7 +218,8 @@ void cLuaWindow::Clicked(cPlayer & a_Player, int a_WindowID, short a_SlotNum, eC if (m_OnClicked != nullptr) { // Plugin can stop a click - if (m_OnClicked->Call(this, &a_Player, a_SlotNum, a_ClickAction, a_ClickedItem)) + bool res; + if (m_OnClicked->Call(this, &a_Player, a_SlotNum, a_ClickAction, a_ClickedItem, cLuaState::Return, res) && res) { // Tell the client the actual state of the window a_Player.GetClientHandle()->SendInventorySlot(-1, -1, a_Player.GetDraggingItem()); |