summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginManager.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-18 17:11:15 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-18 17:11:15 +0100
commitdb5d7963e2dbb3a766850f5ffabd14980beb46b6 (patch)
tree48d4d4eec9a819d9b83a40969e96cbf8f86ea206 /src/Bindings/PluginManager.cpp
parentRemoved offending tr1/memory header inclusion. (diff)
downloadcuberite-db5d7963e2dbb3a766850f5ffabd14980beb46b6.tar
cuberite-db5d7963e2dbb3a766850f5ffabd14980beb46b6.tar.gz
cuberite-db5d7963e2dbb3a766850f5ffabd14980beb46b6.tar.bz2
cuberite-db5d7963e2dbb3a766850f5ffabd14980beb46b6.tar.lz
cuberite-db5d7963e2dbb3a766850f5ffabd14980beb46b6.tar.xz
cuberite-db5d7963e2dbb3a766850f5ffabd14980beb46b6.tar.zst
cuberite-db5d7963e2dbb3a766850f5ffabd14980beb46b6.zip
Diffstat (limited to 'src/Bindings/PluginManager.cpp')
-rw-r--r--src/Bindings/PluginManager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Bindings/PluginManager.cpp b/src/Bindings/PluginManager.cpp
index 12263605f..732da24fa 100644
--- a/src/Bindings/PluginManager.cpp
+++ b/src/Bindings/PluginManager.cpp
@@ -602,16 +602,16 @@ bool cPluginManager::CallHookLogin(cClientHandle * a_Client, int a_ProtocolVersi
-bool cPluginManager::CallHookEntityAnimation(cEntity & a_Entity, int a_Animation)
+bool cPluginManager::CallHookPlayerAnimation(cPlayer & a_Player, int a_Animation)
{
- HookMap::iterator Plugins = m_Hooks.find(HOOK_ENTITY_ANIMATION);
+ HookMap::iterator Plugins = m_Hooks.find(HOOK_PLAYER_ANIMATION);
if (Plugins == m_Hooks.end())
{
return false;
}
for (PluginList::iterator itr = Plugins->second.begin(); itr != Plugins->second.end(); ++itr)
{
- if ((*itr)->OnEntityAnimation(a_Entity, a_Animation))
+ if ((*itr)->OnPlayerAnimation(a_Player, a_Animation))
{
return true;
}