diff options
author | madmaxoft <github@xoft.cz> | 2014-07-17 11:01:26 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-07-17 11:01:26 +0200 |
commit | 7d0fc85d0079febec4af110c4d6404944d1f3eb0 (patch) | |
tree | a2f21d0a5575631c959f5e48652e387e72d8c08b /src/Bindings/PluginLua.cpp | |
parent | Reformatted cItemPotionHandler. (diff) | |
parent | Merge pull request #1193 from mc-server/deathmessages (diff) | |
download | cuberite-7d0fc85d0079febec4af110c4d6404944d1f3eb0.tar cuberite-7d0fc85d0079febec4af110c4d6404944d1f3eb0.tar.gz cuberite-7d0fc85d0079febec4af110c4d6404944d1f3eb0.tar.bz2 cuberite-7d0fc85d0079febec4af110c4d6404944d1f3eb0.tar.lz cuberite-7d0fc85d0079febec4af110c4d6404944d1f3eb0.tar.xz cuberite-7d0fc85d0079febec4af110c4d6404944d1f3eb0.tar.zst cuberite-7d0fc85d0079febec4af110c4d6404944d1f3eb0.zip |
Diffstat (limited to 'src/Bindings/PluginLua.cpp')
-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 a08803189..c36763c38 100644 --- a/src/Bindings/PluginLua.cpp +++ b/src/Bindings/PluginLua.cpp @@ -595,14 +595,14 @@ bool cPluginLua::OnHopperPushingItem(cWorld & a_World, cHopperEntity & a_Hopper, -bool cPluginLua::OnKilling(cEntity & a_Victim, cEntity * a_Killer) +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_Killer, cLuaState::Return, res); + m_LuaState.Call((int)(**itr), &a_Victim, a_Killer, &a_TDI, cLuaState::Return, res); if (res) { return true; |