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-26 08:50:06 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-01-26 08:50:06 +0100
commit7a6ec4fb17c957f86452be92f3ef2908f94c9b0d (patch)
tree1a36bc6576e701ee1d1936f5d2f9c6175cf5d4cc /source/Plugin_NewLua.cpp
parentAdded a function to dump all available Lua API functions into the Debuggers plugin. (diff)
downloadcuberite-7a6ec4fb17c957f86452be92f3ef2908f94c9b0d.tar
cuberite-7a6ec4fb17c957f86452be92f3ef2908f94c9b0d.tar.gz
cuberite-7a6ec4fb17c957f86452be92f3ef2908f94c9b0d.tar.bz2
cuberite-7a6ec4fb17c957f86452be92f3ef2908f94c9b0d.tar.lz
cuberite-7a6ec4fb17c957f86452be92f3ef2908f94c9b0d.tar.xz
cuberite-7a6ec4fb17c957f86452be92f3ef2908f94c9b0d.tar.zst
cuberite-7a6ec4fb17c957f86452be92f3ef2908f94c9b0d.zip
Diffstat (limited to 'source/Plugin_NewLua.cpp')
-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 2214e701c..ef7c148be 100644
--- a/source/Plugin_NewLua.cpp
+++ b/source/Plugin_NewLua.cpp
@@ -562,7 +562,7 @@ bool cPlugin_NewLua::OnPlayerLeftClick(cPlayer & a_Player, int a_BlockX, int a_B
bool cPlugin_NewLua::OnPlayerMoved(cPlayer & a_Player)
{
cCSLock Lock(m_CriticalSection);
- const char * FnName = GetHookFnName(cPluginManager::HOOK_PLAYER_MOVED);
+ const char * FnName = GetHookFnName(cPluginManager::HOOK_PLAYER_MOVING);
ASSERT(FnName != NULL);
if (!PushFunction(FnName))
{
@@ -1168,7 +1168,7 @@ const char * cPlugin_NewLua::GetHookFnName(cPluginManager::PluginHook a_Hook)
case cPluginManager::HOOK_PLAYER_EATING: return "OnPlayerEating";
case cPluginManager::HOOK_PLAYER_JOINED: return "OnPlayerJoined";
case cPluginManager::HOOK_PLAYER_LEFT_CLICK: return "OnPlayerLeftClick";
- case cPluginManager::HOOK_PLAYER_MOVED: return "OnPlayerMoved";
+ case cPluginManager::HOOK_PLAYER_MOVING: return "OnPlayerMoving";
case cPluginManager::HOOK_PLAYER_PLACED_BLOCK: return "OnPlayerPlacedBlock";
case cPluginManager::HOOK_PLAYER_PLACING_BLOCK: return "OnPlayerPlacingBlock";
case cPluginManager::HOOK_PLAYER_RIGHT_CLICK: return "OnPlayerRightClick";