summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginLua.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-05-02 11:18:02 +0200
committermadmaxoft <github@xoft.cz>2014-05-02 12:35:34 +0200
commit4d704255de1368d7d9912458053c2de14be1b5ac (patch)
tree0177fbc8c3fa1b40b4d22f0563a3f934d5264749 /src/Bindings/PluginLua.cpp
parentFixed warnings in ManualBindings. (diff)
downloadcuberite-4d704255de1368d7d9912458053c2de14be1b5ac.tar
cuberite-4d704255de1368d7d9912458053c2de14be1b5ac.tar.gz
cuberite-4d704255de1368d7d9912458053c2de14be1b5ac.tar.bz2
cuberite-4d704255de1368d7d9912458053c2de14be1b5ac.tar.lz
cuberite-4d704255de1368d7d9912458053c2de14be1b5ac.tar.xz
cuberite-4d704255de1368d7d9912458053c2de14be1b5ac.tar.zst
cuberite-4d704255de1368d7d9912458053c2de14be1b5ac.zip
Diffstat (limited to '')
-rw-r--r--src/Bindings/PluginLua.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Bindings/PluginLua.cpp b/src/Bindings/PluginLua.cpp
index cb55715a6..59708bf59 100644
--- a/src/Bindings/PluginLua.cpp
+++ b/src/Bindings/PluginLua.cpp
@@ -400,14 +400,14 @@ bool cPluginLua::OnCraftingNoRecipe(const cPlayer * a_Player, const cCraftingGri
-bool cPluginLua::OnDisconnect(cPlayer * a_Player, const AString & a_Reason)
+bool cPluginLua::OnDisconnect(cClientHandle & a_Client, const AString & a_Reason)
{
cCSLock Lock(m_CriticalSection);
bool res = false;
cLuaRefs & Refs = m_HookMap[cPluginManager::HOOK_DISCONNECT];
for (cLuaRefs::iterator itr = Refs.begin(), end = Refs.end(); itr != end; ++itr)
{
- m_LuaState.Call((int)(**itr), a_Player, a_Reason, cLuaState::Return, res);
+ m_LuaState.Call((int)(**itr), &a_Client, a_Reason, cLuaState::Return, res);
if (res)
{
return true;