diff options
author | madmaxoft <github@xoft.cz> | 2013-09-13 16:38:39 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-09-13 16:38:39 +0200 |
commit | a9969408e45f320a9add45763d864f5b54ef98e1 (patch) | |
tree | 55405b1dd6f783ad8246c20d9df5ef2f89a98e19 /MCServer/Plugins/APIDump/main.lua | |
parent | APIDump: Fixed link in cBlockArea's docs (diff) | |
download | cuberite-a9969408e45f320a9add45763d864f5b54ef98e1.tar cuberite-a9969408e45f320a9add45763d864f5b54ef98e1.tar.gz cuberite-a9969408e45f320a9add45763d864f5b54ef98e1.tar.bz2 cuberite-a9969408e45f320a9add45763d864f5b54ef98e1.tar.lz cuberite-a9969408e45f320a9add45763d864f5b54ef98e1.tar.xz cuberite-a9969408e45f320a9add45763d864f5b54ef98e1.tar.zst cuberite-a9969408e45f320a9add45763d864f5b54ef98e1.zip |
Diffstat (limited to '')
-rw-r--r-- | MCServer/Plugins/APIDump/main.lua | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/MCServer/Plugins/APIDump/main.lua b/MCServer/Plugins/APIDump/main.lua index 09f198da4..daa5d1236 100644 --- a/MCServer/Plugins/APIDump/main.lua +++ b/MCServer/Plugins/APIDump/main.lua @@ -152,10 +152,16 @@ function CreateAPITables() end for i, v in pairs(_G) do - if (type(v) == "table") then - table.insert(API, ParseClass(i, v)); - else - Add(Globals, i, v); + if ( + (v ~= _G) and -- don't want the global namespace + (v ~= _G.packages) and -- don't want any packages + (v ~= _G[".get"]) + ) then + if (type(v) == "table") then + table.insert(API, ParseClass(i, v)); + else + Add(Globals, i, v); + end end end SortClass(Globals); |