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-28 17:17:26 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-01-28 17:17:26 +0100
commit05534bbee1b9c920c3181da6ba45e4a6212cf229 (patch)
treeb041a481bd0d43c5470d7c30fec75d365a76966e /source/Plugin_NewLua.cpp
parentcItems: Fixed parameter names according to conventions (diff)
downloadcuberite-05534bbee1b9c920c3181da6ba45e4a6212cf229.tar
cuberite-05534bbee1b9c920c3181da6ba45e4a6212cf229.tar.gz
cuberite-05534bbee1b9c920c3181da6ba45e4a6212cf229.tar.bz2
cuberite-05534bbee1b9c920c3181da6ba45e4a6212cf229.tar.lz
cuberite-05534bbee1b9c920c3181da6ba45e4a6212cf229.tar.xz
cuberite-05534bbee1b9c920c3181da6ba45e4a6212cf229.tar.zst
cuberite-05534bbee1b9c920c3181da6ba45e4a6212cf229.zip
Diffstat (limited to 'source/Plugin_NewLua.cpp')
-rw-r--r--source/Plugin_NewLua.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/Plugin_NewLua.cpp b/source/Plugin_NewLua.cpp
index c687f6d8c..418c484ad 100644
--- a/source/Plugin_NewLua.cpp
+++ b/source/Plugin_NewLua.cpp
@@ -280,10 +280,10 @@ bool cPlugin_NewLua::OnChunkGenerating(cWorld * a_World, int a_ChunkX, int a_Chu
-bool cPlugin_NewLua::OnCollectPickup(cPlayer * a_Player, cPickup * a_Pickup)
+bool cPlugin_NewLua::OnCollectingPickup(cPlayer * a_Player, cPickup * a_Pickup)
{
cCSLock Lock(m_CriticalSection);
- const char * FnName = GetHookFnName(cPluginManager::HOOK_COLLECT_PICKUP);
+ const char * FnName = GetHookFnName(cPluginManager::HOOK_COLLECTING_PICKUP);
ASSERT(FnName != NULL);
if (!PushFunction(FnName))
{
@@ -1190,7 +1190,7 @@ const char * cPlugin_NewLua::GetHookFnName(cPluginManager::PluginHook a_Hook)
case cPluginManager::HOOK_CHAT: return "OnChat";
case cPluginManager::HOOK_CHUNK_GENERATED: return "OnChunkGenerated";
case cPluginManager::HOOK_CHUNK_GENERATING: return "OnChunkGenerating";
- case cPluginManager::HOOK_COLLECT_PICKUP: return "OnCollectPickup";
+ case cPluginManager::HOOK_COLLECTING_PICKUP: return "OnCollectingPickup";
case cPluginManager::HOOK_CRAFTING_NO_RECIPE: return "OnCraftingNoRecipe";
case cPluginManager::HOOK_DISCONNECT: return "OnDisconnect";
case cPluginManager::HOOK_HANDSHAKE: return "OnHandshake";