summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump/main.lua
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-10-22 21:53:35 +0200
committermadmaxoft <github@xoft.cz>2013-10-22 21:53:35 +0200
commitec94104a3ce4f88ed1490fd4283ed5a429bf675c (patch)
tree5b77a7017003ed31275e60f490b9159389a9e445 /MCServer/Plugins/APIDump/main.lua
parentTemporary fix for world not locking chunkmap in TickMobs. (diff)
downloadcuberite-ec94104a3ce4f88ed1490fd4283ed5a429bf675c.tar
cuberite-ec94104a3ce4f88ed1490fd4283ed5a429bf675c.tar.gz
cuberite-ec94104a3ce4f88ed1490fd4283ed5a429bf675c.tar.bz2
cuberite-ec94104a3ce4f88ed1490fd4283ed5a429bf675c.tar.lz
cuberite-ec94104a3ce4f88ed1490fd4283ed5a429bf675c.tar.xz
cuberite-ec94104a3ce4f88ed1490fd4283ed5a429bf675c.tar.zst
cuberite-ec94104a3ce4f88ed1490fd4283ed5a429bf675c.zip
Diffstat (limited to 'MCServer/Plugins/APIDump/main.lua')
-rw-r--r--MCServer/Plugins/APIDump/main.lua10
1 files changed, 4 insertions, 6 deletions
diff --git a/MCServer/Plugins/APIDump/main.lua b/MCServer/Plugins/APIDump/main.lua
index b608ce256..eb0555d67 100644
--- a/MCServer/Plugins/APIDump/main.lua
+++ b/MCServer/Plugins/APIDump/main.lua
@@ -818,12 +818,10 @@ function WriteHtmlClass(a_ClassAPI, a_AllAPI)
local HasConstants = (#a_ClassAPI.Constants > 0);
local HasFunctions = (#a_ClassAPI.Functions > 0);
local HasVariables = (#a_ClassAPI.Variables > 0);
- if (a_ClassAPI.Inherits ~= nil) then
- for idx, cls in ipairs(a_ClassAPI.Inherits) do
- HasConstants = HasConstants or (#cls.Constants > 0);
- HasFunctions = HasFunctions or (#cls.Functions > 0);
- HasVariables = HasVariables or (#cls.Variables > 0);
- end
+ for idx, cls in ipairs(InheritanceChain) do
+ HasConstants = HasConstants or (#cls.Constants > 0);
+ HasFunctions = HasFunctions or (#cls.Functions > 0);
+ HasVariables = HasVariables or (#cls.Variables > 0);
end
-- Write the table of contents: