summaryrefslogtreecommitdiffstats
path: root/source/ClientHandle.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-11 12:12:20 +0200
committermadmaxoft <github@xoft.cz>2013-08-11 12:29:05 +0200
commitdeeb3a15dc8914a3514685e8f79f543b00b2b908 (patch)
tree840a5d0a612a131318a9a40ff36b2c16f3bd28e0 /source/ClientHandle.cpp
parentAttempt at fixing torch placement (diff)
downloadcuberite-deeb3a15dc8914a3514685e8f79f543b00b2b908.tar
cuberite-deeb3a15dc8914a3514685e8f79f543b00b2b908.tar.gz
cuberite-deeb3a15dc8914a3514685e8f79f543b00b2b908.tar.bz2
cuberite-deeb3a15dc8914a3514685e8f79f543b00b2b908.tar.lz
cuberite-deeb3a15dc8914a3514685e8f79f543b00b2b908.tar.xz
cuberite-deeb3a15dc8914a3514685e8f79f543b00b2b908.tar.zst
cuberite-deeb3a15dc8914a3514685e8f79f543b00b2b908.zip
Diffstat (limited to 'source/ClientHandle.cpp')
-rw-r--r--source/ClientHandle.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/ClientHandle.cpp b/source/ClientHandle.cpp
index 7605f5251..102153de1 100644
--- a/source/ClientHandle.cpp
+++ b/source/ClientHandle.cpp
@@ -997,6 +997,12 @@ void cClientHandle::HandlePlayerMoveLook(double a_PosX, double a_PosY, double a_
void cClientHandle::HandleAnimation(char a_Animation)
{
+ if (cPluginManager::Get()->CallHookPlayerAnimation(*m_Player, a_Animation))
+ {
+ // Plugin disagrees, bail out
+ return;
+ }
+
m_Player->GetWorld()->BroadcastPlayerAnimation(*m_Player, a_Animation, this);
}