summaryrefslogtreecommitdiffstats
path: root/source/Plugin_NewLua.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-01-18 19:28:27 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-01-18 19:28:27 +0100
commit7632b5ed62100bbecbda51699f5bcfb6bef24294 (patch)
tree802f3a7d36949a47b5ddff420cf4e166aa498c30 /source/Plugin_NewLua.cpp
parentAdded Handy plugin (diff)
downloadcuberite-7632b5ed62100bbecbda51699f5bcfb6bef24294.tar
cuberite-7632b5ed62100bbecbda51699f5bcfb6bef24294.tar.gz
cuberite-7632b5ed62100bbecbda51699f5bcfb6bef24294.tar.bz2
cuberite-7632b5ed62100bbecbda51699f5bcfb6bef24294.tar.lz
cuberite-7632b5ed62100bbecbda51699f5bcfb6bef24294.tar.xz
cuberite-7632b5ed62100bbecbda51699f5bcfb6bef24294.tar.zst
cuberite-7632b5ed62100bbecbda51699f5bcfb6bef24294.zip
Diffstat (limited to '')
-rw-r--r--source/Plugin_NewLua.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/Plugin_NewLua.cpp b/source/Plugin_NewLua.cpp
index 3badafffb..fca1d5150 100644
--- a/source/Plugin_NewLua.cpp
+++ b/source/Plugin_NewLua.cpp
@@ -658,7 +658,7 @@ bool cPlugin_NewLua::OnPlayerPlacingBlock(cPlayer & a_Player, int a_BlockX, int
bool cPlugin_NewLua::OnPlayerRightClick(cPlayer & a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, int a_CursorX, int a_CursorY, int a_CursorZ)
{
cCSLock Lock(m_CriticalSection);
- const char * FnName = GetHookFnName(cPluginManager::HOOK_PLAYER_RIGHTCLICK);
+ const char * FnName = GetHookFnName(cPluginManager::HOOK_PLAYER_RIGHT_CLICK);
ASSERT(FnName != NULL);
if (!PushFunction(FnName))
{
@@ -1171,7 +1171,7 @@ const char * cPlugin_NewLua::GetHookFnName(cPluginManager::PluginHook a_Hook)
case cPluginManager::HOOK_PLAYER_MOVED: return "OnPlayerMoved";
case cPluginManager::HOOK_PLAYER_PLACED_BLOCK: return "OnPlayerPlacedBlock";
case cPluginManager::HOOK_PLAYER_PLACING_BLOCK: return "OnPlayerPlacingBlock";
- case cPluginManager::HOOK_PLAYER_RIGHTCLICK: return "OnPlayerRightClick";
+ case cPluginManager::HOOK_PLAYER_RIGHT_CLICK: return "OnPlayerRightClick";
case cPluginManager::HOOK_PLAYER_SHOOTING: return "OnPlayerShooting";
case cPluginManager::HOOK_PLAYER_SPAWNED: return "OnPlayerSpawned";
case cPluginManager::HOOK_PLAYER_TOSSING_ITEM: return "OnPlayerTossingItem";