summaryrefslogtreecommitdiffstats
path: root/src/PluginManager.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-07 00:47:07 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-07 00:47:07 +0100
commit30ead790490f04248b861db79fddde9148b552f4 (patch)
treed514486213ab0cf99d33d0580718fd058c3cbc51 /src/PluginManager.cpp
parentFixed bed leave animation (diff)
downloadcuberite-30ead790490f04248b861db79fddde9148b552f4.tar
cuberite-30ead790490f04248b861db79fddde9148b552f4.tar.gz
cuberite-30ead790490f04248b861db79fddde9148b552f4.tar.bz2
cuberite-30ead790490f04248b861db79fddde9148b552f4.tar.lz
cuberite-30ead790490f04248b861db79fddde9148b552f4.tar.xz
cuberite-30ead790490f04248b861db79fddde9148b552f4.tar.zst
cuberite-30ead790490f04248b861db79fddde9148b552f4.zip
Diffstat (limited to 'src/PluginManager.cpp')
-rw-r--r--src/PluginManager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/PluginManager.cpp b/src/PluginManager.cpp
index b57a9d7d8..5bf8a0232 100644
--- a/src/PluginManager.cpp
+++ b/src/PluginManager.cpp
@@ -603,16 +603,16 @@ bool cPluginManager::CallHookLogin(cClientHandle * a_Client, int a_ProtocolVersi
-bool cPluginManager::CallHookPlayerAnimation(cPlayer & a_Player, int a_Animation)
+bool cPluginManager::CallHookEntityAnimation(cEntity & a_Entity, int a_Animation)
{
- HookMap::iterator Plugins = m_Hooks.find(HOOK_PLAYER_ANIMATION);
+ HookMap::iterator Plugins = m_Hooks.find(HOOK_ENTITY_ANIMATION);
if (Plugins == m_Hooks.end())
{
return false;
}
for (PluginList::iterator itr = Plugins->second.begin(); itr != Plugins->second.end(); ++itr)
{
- if ((*itr)->OnPlayerAnimation(a_Player, a_Animation))
+ if ((*itr)->OnEntityAnimation(a_Entity, a_Animation))
{
return true;
}