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/PluginManager.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/PluginManager.cpp')
-rw-r--r-- | src/Bindings/PluginManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Bindings/PluginManager.cpp b/src/Bindings/PluginManager.cpp index 7e6502515..12b233fd1 100644 --- a/src/Bindings/PluginManager.cpp +++ b/src/Bindings/PluginManager.cpp @@ -588,14 +588,14 @@ bool cPluginManager::CallHookHopperPushingItem(cWorld & a_World, cHopperEntity & -bool cPluginManager::CallHookKilling(cEntity & a_Victim, cEntity * a_Killer) +bool cPluginManager::CallHookKilling(cEntity & a_Victim, cEntity * a_Killer, TakeDamageInfo & a_TDI) { FIND_HOOK(HOOK_KILLING); VERIFY_HOOK; for (PluginList::iterator itr = Plugins->second.begin(); itr != Plugins->second.end(); ++itr) { - if ((*itr)->OnKilling(a_Victim, a_Killer)) + if ((*itr)->OnKilling(a_Victim, a_Killer, a_TDI)) { return true; } |