summaryrefslogtreecommitdiffstats
path: root/source/ClientHandle.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-02 08:44:06 +0200
committermadmaxoft <github@xoft.cz>2013-08-02 08:44:06 +0200
commit3531bdb60b858a232f23bb8651b75afcd79e57e5 (patch)
treef4e5557421b2320a6ec817af967aab37e6fe0bbc /source/ClientHandle.cpp
parentNew players get full health (diff)
downloadcuberite-3531bdb60b858a232f23bb8651b75afcd79e57e5.tar
cuberite-3531bdb60b858a232f23bb8651b75afcd79e57e5.tar.gz
cuberite-3531bdb60b858a232f23bb8651b75afcd79e57e5.tar.bz2
cuberite-3531bdb60b858a232f23bb8651b75afcd79e57e5.tar.lz
cuberite-3531bdb60b858a232f23bb8651b75afcd79e57e5.tar.xz
cuberite-3531bdb60b858a232f23bb8651b75afcd79e57e5.tar.zst
cuberite-3531bdb60b858a232f23bb8651b75afcd79e57e5.zip
Diffstat (limited to 'source/ClientHandle.cpp')
-rw-r--r--source/ClientHandle.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/ClientHandle.cpp b/source/ClientHandle.cpp
index 45b604b65..52c4b3061 100644
--- a/source/ClientHandle.cpp
+++ b/source/ClientHandle.cpp
@@ -1070,6 +1070,10 @@ void cClientHandle::HandleUseEntity(int a_TargetEntityID, bool a_IsLeftClick)
cPlayer & m_Player;
virtual bool Item(cEntity * a_Entity) override
{
+ if (cPluginManager::Get()->CallHookPlayerRightClickingEntity(m_Player, *a_Entity))
+ {
+ return false;
+ }
a_Entity->OnRightClicked(m_Player);
return false;
}