diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-01-18 19:28:27 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-01-18 19:28:27 +0100 |
commit | 7632b5ed62100bbecbda51699f5bcfb6bef24294 (patch) | |
tree | 802f3a7d36949a47b5ddff420cf4e166aa498c30 /source/Plugin_NewLua.cpp | |
parent | Added Handy plugin (diff) | |
download | cuberite-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.cpp | 4 |
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"; |