diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-04 11:55:09 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-07-04 11:55:09 +0200 |
commit | a0d2df93272a6108f8c568e1eed665a1da5cb7ed (patch) | |
tree | 73ce9334f32e068247665e5d7200f841f9f07009 /src/Bindings/PluginLua.cpp | |
parent | Merge pull request #1138 from mc-server/enderchest (diff) | |
download | cuberite-a0d2df93272a6108f8c568e1eed665a1da5cb7ed.tar cuberite-a0d2df93272a6108f8c568e1eed665a1da5cb7ed.tar.gz cuberite-a0d2df93272a6108f8c568e1eed665a1da5cb7ed.tar.bz2 cuberite-a0d2df93272a6108f8c568e1eed665a1da5cb7ed.tar.lz cuberite-a0d2df93272a6108f8c568e1eed665a1da5cb7ed.tar.xz cuberite-a0d2df93272a6108f8c568e1eed665a1da5cb7ed.tar.zst cuberite-a0d2df93272a6108f8c568e1eed665a1da5cb7ed.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 344031995..078e48111 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, cEntity * a_Killer) +bool cPluginLua::OnKilling(cEntity & a_Victim, 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_TDI, cLuaState::Return, res); if (res) { return true; |