diff options
author | madmaxoft <github@xoft.cz> | 2013-10-14 21:57:23 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-10-14 21:57:23 +0200 |
commit | e4bb796c6b03374ef5fcf02acee710900cacb5bb (patch) | |
tree | 805523f9fdd18752e7b92a2af174e0095fd0769a /MCServer/Plugins | |
parent | APIDump: Documented HOOK_LOGIN. (diff) | |
download | cuberite-e4bb796c6b03374ef5fcf02acee710900cacb5bb.tar cuberite-e4bb796c6b03374ef5fcf02acee710900cacb5bb.tar.gz cuberite-e4bb796c6b03374ef5fcf02acee710900cacb5bb.tar.bz2 cuberite-e4bb796c6b03374ef5fcf02acee710900cacb5bb.tar.lz cuberite-e4bb796c6b03374ef5fcf02acee710900cacb5bb.tar.xz cuberite-e4bb796c6b03374ef5fcf02acee710900cacb5bb.tar.zst cuberite-e4bb796c6b03374ef5fcf02acee710900cacb5bb.zip |
Diffstat (limited to '')
-rw-r--r-- | MCServer/Plugins/APIDump/main.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/MCServer/Plugins/APIDump/main.lua b/MCServer/Plugins/APIDump/main.lua index 8c07144f2..6ae4a6b0f 100644 --- a/MCServer/Plugins/APIDump/main.lua +++ b/MCServer/Plugins/APIDump/main.lua @@ -180,7 +180,12 @@ function DumpAPIHtml() -- Extract hook constants: for name, obj in pairs(cPluginManager) do - if (type(obj) == "number") and (name:match("HOOK_.*")) then + if ( + (type(obj) == "number") and + name:match("HOOK_.*") and + (name ~= "HOOK_MAX") and + (name ~= "HOOK_NUM_HOOKS") + ) then table.insert(Hooks, { Name = name }); end end |