diff options
author | Mattes D <github@xoft.cz> | 2014-07-17 10:12:22 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-07-17 10:12:22 +0200 |
commit | 98244e96d1a810bea24a6c8463f9beb535ad2daf (patch) | |
tree | a57dd6f82ad46ee02811f4f77bcd56a50c5b8865 /src/Bindings/PluginLua.cpp | |
parent | Another fix for excessive food drain (diff) | |
parent | Resolved backwards compatibility issues (diff) | |
download | cuberite-98244e96d1a810bea24a6c8463f9beb535ad2daf.tar cuberite-98244e96d1a810bea24a6c8463f9beb535ad2daf.tar.gz cuberite-98244e96d1a810bea24a6c8463f9beb535ad2daf.tar.bz2 cuberite-98244e96d1a810bea24a6c8463f9beb535ad2daf.tar.lz cuberite-98244e96d1a810bea24a6c8463f9beb535ad2daf.tar.xz cuberite-98244e96d1a810bea24a6c8463f9beb535ad2daf.tar.zst cuberite-98244e96d1a810bea24a6c8463f9beb535ad2daf.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 104380ea4..b85ac3321 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, 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; |