diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-01-28 17:17:26 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-01-28 17:17:26 +0100 |
commit | 05534bbee1b9c920c3181da6ba45e4a6212cf229 (patch) | |
tree | b041a481bd0d43c5470d7c30fec75d365a76966e /source/PluginManager.cpp | |
parent | cItems: Fixed parameter names according to conventions (diff) | |
download | cuberite-05534bbee1b9c920c3181da6ba45e4a6212cf229.tar cuberite-05534bbee1b9c920c3181da6ba45e4a6212cf229.tar.gz cuberite-05534bbee1b9c920c3181da6ba45e4a6212cf229.tar.bz2 cuberite-05534bbee1b9c920c3181da6ba45e4a6212cf229.tar.lz cuberite-05534bbee1b9c920c3181da6ba45e4a6212cf229.tar.xz cuberite-05534bbee1b9c920c3181da6ba45e4a6212cf229.tar.zst cuberite-05534bbee1b9c920c3181da6ba45e4a6212cf229.zip |
Diffstat (limited to '')
-rw-r--r-- | source/PluginManager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/PluginManager.cpp b/source/PluginManager.cpp index 2fada4714..e7a4329ca 100644 --- a/source/PluginManager.cpp +++ b/source/PluginManager.cpp @@ -323,16 +323,16 @@ bool cPluginManager::CallHookChunkGenerating(cWorld * a_World, int a_ChunkX, int -bool cPluginManager::CallHookCollectPickup(cPlayer * a_Player, cPickup & a_Pickup) +bool cPluginManager::CallHookCollectingPickup(cPlayer * a_Player, cPickup & a_Pickup) { - HookMap::iterator Plugins = m_Hooks.find(HOOK_COLLECT_PICKUP); + HookMap::iterator Plugins = m_Hooks.find(HOOK_COLLECTING_PICKUP); if (Plugins == m_Hooks.end()) { return false; } for (PluginList::iterator itr = Plugins->second.begin(); itr != Plugins->second.end(); ++itr) { - if ((*itr)->OnCollectPickup(a_Player, &a_Pickup)) + if ((*itr)->OnCollectingPickup(a_Player, &a_Pickup)) { return true; } |