summaryrefslogtreecommitdiffstats
path: root/src/Bindings/LuaWindow.cpp
diff options
context:
space:
mode:
authorDaPorkchop_ <DaMatrix@users.noreply.github.com>2019-06-11 12:07:35 +0200
committerMattes D <github@xoft.cz>2019-06-11 12:07:35 +0200
commit52e6543ba51b99e9f8be01fc844b59fc51f138f6 (patch)
treeda4b248eb219fe30a79e5b095918021706ba6161 /src/Bindings/LuaWindow.cpp
parentFix directory traversal bug (#4341) (diff)
downloadcuberite-52e6543ba51b99e9f8be01fc844b59fc51f138f6.tar
cuberite-52e6543ba51b99e9f8be01fc844b59fc51f138f6.tar.gz
cuberite-52e6543ba51b99e9f8be01fc844b59fc51f138f6.tar.bz2
cuberite-52e6543ba51b99e9f8be01fc844b59fc51f138f6.tar.lz
cuberite-52e6543ba51b99e9f8be01fc844b59fc51f138f6.tar.xz
cuberite-52e6543ba51b99e9f8be01fc844b59fc51f138f6.tar.zst
cuberite-52e6543ba51b99e9f8be01fc844b59fc51f138f6.zip
Diffstat (limited to '')
-rw-r--r--src/Bindings/LuaWindow.cpp3
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());