summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump/main_APIDump.lua
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-01-05 15:46:45 +0100
committermadmaxoft <github@xoft.cz>2014-01-05 15:46:45 +0100
commit84bf32f857f890ce50c82a2612fe1bfe072886c9 (patch)
tree68438c416ed73fd80a7f2f91e1b005edc50bd931 /MCServer/Plugins/APIDump/main_APIDump.lua
parentFixed a race condition in the cQueue class. (diff)
downloadcuberite-84bf32f857f890ce50c82a2612fe1bfe072886c9.tar
cuberite-84bf32f857f890ce50c82a2612fe1bfe072886c9.tar.gz
cuberite-84bf32f857f890ce50c82a2612fe1bfe072886c9.tar.bz2
cuberite-84bf32f857f890ce50c82a2612fe1bfe072886c9.tar.lz
cuberite-84bf32f857f890ce50c82a2612fe1bfe072886c9.tar.xz
cuberite-84bf32f857f890ce50c82a2612fe1bfe072886c9.tar.zst
cuberite-84bf32f857f890ce50c82a2612fe1bfe072886c9.zip
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/APIDump/main_APIDump.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/MCServer/Plugins/APIDump/main_APIDump.lua b/MCServer/Plugins/APIDump/main_APIDump.lua
index b3a95eb22..bd509dcb6 100644
--- a/MCServer/Plugins/APIDump/main_APIDump.lua
+++ b/MCServer/Plugins/APIDump/main_APIDump.lua
@@ -1177,7 +1177,7 @@ function WriteHtmlHook(a_Hook, a_HookNav)
f:write("</table>\n<p>" .. (a_Hook.Returns or "") .. "</p>\n\n");
f:write([[<hr /><h1>Code examples</h1><h2>Registering the callback</h2>]]);
f:write("<pre class=\"prettyprint lang-lua\">\n");
- f:write([[cPluginManager.AddHook(cPluginManager.]] .. a_Hook.Name .. ", My" .. a_Hook.DefaultFnName .. [[);]]);
+ f:write([[cPluginManager:AddHook(cPluginManager.]] .. a_Hook.Name .. ", My" .. a_Hook.DefaultFnName .. [[);]]);
f:write("</pre>\n\n");
local Examples = a_Hook.CodeExamples or {};
for i, example in ipairs(Examples) do