diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-16 12:38:52 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-16 12:38:52 +0200 |
commit | 2189f37c20198a5889d5477aa4abcc116437861d (patch) | |
tree | d6d9f458e33098d8df41ac21f8ad6ec656870db1 /src/Bindings/PluginLua.cpp | |
parent | Tailored death messages (diff) | |
download | cuberite-2189f37c20198a5889d5477aa4abcc116437861d.tar cuberite-2189f37c20198a5889d5477aa4abcc116437861d.tar.gz cuberite-2189f37c20198a5889d5477aa4abcc116437861d.tar.bz2 cuberite-2189f37c20198a5889d5477aa4abcc116437861d.tar.lz cuberite-2189f37c20198a5889d5477aa4abcc116437861d.tar.xz cuberite-2189f37c20198a5889d5477aa4abcc116437861d.tar.zst cuberite-2189f37c20198a5889d5477aa4abcc116437861d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Bindings/PluginLua.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Bindings/PluginLua.cpp b/src/Bindings/PluginLua.cpp index 078e48111..e65329f23 100644 --- a/src/Bindings/PluginLua.cpp +++ b/src/Bindings/PluginLua.cpp @@ -575,14 +575,14 @@ bool cPluginLua::OnHopperPushingItem(cWorld & a_World, cHopperEntity & a_Hopper, -bool cPluginLua::OnKilling(cEntity & a_Victim, TakeDamageInfo & a_TDI) +bool cPluginLua::OnKilling(cEntity & a_Victim, cEntity * a_Killer, TakeDamageInfo & a_TDI) { cCSLock Lock(m_CriticalSection); bool res = false; cLuaRefs & Refs = m_HookMap[cPluginManager::HOOK_KILLING]; for (cLuaRefs::iterator itr = Refs.begin(), end = Refs.end(); itr != end; ++itr) { - m_LuaState.Call((int)(**itr), &a_Victim, &a_TDI, cLuaState::Return, res); + m_LuaState.Call((int)(**itr), &a_Victim, a_Killer, &a_TDI, cLuaState::Return, res); if (res) { return true; |