summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginLua.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-07-02 14:46:00 +0200
committerHowaner <franzi.moos@googlemail.com>2014-07-02 14:46:00 +0200
commit4a9002045b86406ffd4bb16f67d33ae4060e6bc7 (patch)
treecba77630b1f0aed726784e87006fbf08147964c6 /src/Bindings/PluginLua.cpp
parentChange documentation (diff)
downloadcuberite-4a9002045b86406ffd4bb16f67d33ae4060e6bc7.tar
cuberite-4a9002045b86406ffd4bb16f67d33ae4060e6bc7.tar.gz
cuberite-4a9002045b86406ffd4bb16f67d33ae4060e6bc7.tar.bz2
cuberite-4a9002045b86406ffd4bb16f67d33ae4060e6bc7.tar.lz
cuberite-4a9002045b86406ffd4bb16f67d33ae4060e6bc7.tar.xz
cuberite-4a9002045b86406ffd4bb16f67d33ae4060e6bc7.tar.zst
cuberite-4a9002045b86406ffd4bb16f67d33ae4060e6bc7.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 2d485a117..542ae3e56 100644
--- a/src/Bindings/PluginLua.cpp
+++ b/src/Bindings/PluginLua.cpp
@@ -715,14 +715,14 @@ bool cPluginLua::OnPlayerEating(cPlayer & a_Player)
-bool cPluginLua::OnPlayerFoodLevelChange(cPlayer & a_Player, int & a_NewFoodLevel)
+bool cPluginLua::OnPlayerFoodLevelChange(cPlayer & a_Player, int a_NewFoodLevel)
{
cCSLock Lock(m_CriticalSection);
bool res = false;
cLuaRefs & Refs = m_HookMap[cPluginManager::HOOK_PLAYER_FOOD_LEVEL_CHANGE];
for (cLuaRefs::iterator itr = Refs.begin(), end = Refs.end(); itr != end; ++itr)
{
- m_LuaState.Call((int)(**itr), &a_Player, a_NewFoodLevel, cLuaState::Return, res, a_NewFoodLevel);
+ m_LuaState.Call((int)(**itr), &a_Player, a_NewFoodLevel, cLuaState::Return, res);
if (res)
{
return true;