summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginLua.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2013-12-18 18:57:35 +0100
committerMattes D <github@xoft.cz>2013-12-18 18:57:35 +0100
commitd6d42c36ea99170635044c1c156d5388693774f8 (patch)
tree48d4d4eec9a819d9b83a40969e96cbf8f86ea206 /src/Bindings/PluginLua.cpp
parentRemoved offending tr1/memory header inclusion. (diff)
parentRenamed back EntityAnimation to PlayerAnimation (diff)
downloadcuberite-d6d42c36ea99170635044c1c156d5388693774f8.tar
cuberite-d6d42c36ea99170635044c1c156d5388693774f8.tar.gz
cuberite-d6d42c36ea99170635044c1c156d5388693774f8.tar.bz2
cuberite-d6d42c36ea99170635044c1c156d5388693774f8.tar.lz
cuberite-d6d42c36ea99170635044c1c156d5388693774f8.tar.xz
cuberite-d6d42c36ea99170635044c1c156d5388693774f8.tar.zst
cuberite-d6d42c36ea99170635044c1c156d5388693774f8.zip
Diffstat (limited to 'src/Bindings/PluginLua.cpp')
-rw-r--r--src/Bindings/PluginLua.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Bindings/PluginLua.cpp b/src/Bindings/PluginLua.cpp
index f27cee76e..0d17c9ce2 100644
--- a/src/Bindings/PluginLua.cpp
+++ b/src/Bindings/PluginLua.cpp
@@ -550,14 +550,14 @@ bool cPluginLua::OnLogin(cClientHandle * a_Client, int a_ProtocolVersion, const
-bool cPluginLua::OnEntityAnimation(cEntity & a_Entity, int a_Animation)
+bool cPluginLua::OnPlayerAnimation(cPlayer & a_Player, int a_Animation)
{
cCSLock Lock(m_CriticalSection);
bool res = false;
- cLuaRefs & Refs = m_HookMap[cPluginManager::HOOK_ENTITY_ANIMATION];
+ cLuaRefs & Refs = m_HookMap[cPluginManager::HOOK_PLAYER_ANIMATION];
for (cLuaRefs::iterator itr = Refs.begin(), end = Refs.end(); itr != end; ++itr)
{
- m_LuaState.Call((int)(**itr), &a_Entity, a_Animation, cLuaState::Return, res);
+ m_LuaState.Call((int)(**itr), &a_Player, a_Animation, cLuaState::Return, res);
if (res)
{
return true;
@@ -1302,7 +1302,7 @@ const char * cPluginLua::GetHookFnName(int a_HookType)
case cPluginManager::HOOK_COLLECTING_PICKUP: return "OnCollectingPickup";
case cPluginManager::HOOK_CRAFTING_NO_RECIPE: return "OnCraftingNoRecipe";
case cPluginManager::HOOK_DISCONNECT: return "OnDisconnect";
- case cPluginManager::HOOK_ENTITY_ANIMATION: return "OnEntityAnimation";
+ case cPluginManager::HOOK_PLAYER_ANIMATION: return "OnPlayerAnimation";
case cPluginManager::HOOK_EXECUTE_COMMAND: return "OnExecuteCommand";
case cPluginManager::HOOK_HANDSHAKE: return "OnHandshake";
case cPluginManager::HOOK_KILLING: return "OnKilling";