diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2013-12-31 14:53:10 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2013-12-31 14:53:10 +0100 |
commit | 020a8b457d67a70f407482322188823af9ac7f72 (patch) | |
tree | 0a285b6897b4f403696d19b23579d96da5458a6b /src/Bindings/PluginLua.cpp | |
parent | Documented OnPlayerFished and OnPlayerFishing. (diff) | |
download | cuberite-020a8b457d67a70f407482322188823af9ac7f72.tar cuberite-020a8b457d67a70f407482322188823af9ac7f72.tar.gz cuberite-020a8b457d67a70f407482322188823af9ac7f72.tar.bz2 cuberite-020a8b457d67a70f407482322188823af9ac7f72.tar.lz cuberite-020a8b457d67a70f407482322188823af9ac7f72.tar.xz cuberite-020a8b457d67a70f407482322188823af9ac7f72.tar.zst cuberite-020a8b457d67a70f407482322188823af9ac7f72.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Bindings/PluginLua.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Bindings/PluginLua.cpp b/src/Bindings/PluginLua.cpp index 66a60efe8..d8108da54 100644 --- a/src/Bindings/PluginLua.cpp +++ b/src/Bindings/PluginLua.cpp @@ -630,14 +630,14 @@ bool cPluginLua::OnPlayerEating(cPlayer & a_Player) -bool cPluginLua::OnPlayerFished(cPlayer & a_Player, cItems & a_Reward) +bool cPluginLua::OnPlayerFished(cPlayer & a_Player, const cItems & a_Reward) { cCSLock Lock(m_CriticalSection); bool res = false; cLuaRefs & Refs = m_HookMap[cPluginManager::HOOK_PLAYER_FISHED]; for (cLuaRefs::iterator itr = Refs.begin(), end = Refs.end(); itr != end; ++itr) { - m_LuaState.Call((int)(**itr), &a_Player, &a_Reward, cLuaState::Return, res); + m_LuaState.Call((int)(**itr), &a_Player, a_Reward, cLuaState::Return, res); if (res) { return true; @@ -650,14 +650,14 @@ bool cPluginLua::OnPlayerFished(cPlayer & a_Player, cItems & a_Reward) -bool cPluginLua::OnPlayerFishing(cPlayer & a_Player, cItems & a_Reward) +bool cPluginLua::OnPlayerFishing(cPlayer & a_Player, const cItems & a_Reward) { cCSLock Lock(m_CriticalSection); bool res = false; cLuaRefs & Refs = m_HookMap[cPluginManager::HOOK_PLAYER_FISHING]; for (cLuaRefs::iterator itr = Refs.begin(), end = Refs.end(); itr != end; ++itr) { - m_LuaState.Call((int)(**itr), &a_Player, &a_Reward, cLuaState::Return, res); + m_LuaState.Call((int)(**itr), &a_Player, a_Reward, cLuaState::Return, res); if (res) { return true; |