diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-01-27 03:34:38 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-01-27 03:34:38 +0100 |
commit | df0190afd743a8acc4768d5800c3b06650aa1c5b (patch) | |
tree | 626f812eb9d3743adf535d84076621a79ace9444 /MCServer/Plugins/Debuggers/Debuggers.lua | |
parent | Added the HOOK_BLOCK_TO_PICKUPS hook that fires when a block is dug up and should be converted to pickups. (diff) | |
download | cuberite-df0190afd743a8acc4768d5800c3b06650aa1c5b.tar cuberite-df0190afd743a8acc4768d5800c3b06650aa1c5b.tar.gz cuberite-df0190afd743a8acc4768d5800c3b06650aa1c5b.tar.bz2 cuberite-df0190afd743a8acc4768d5800c3b06650aa1c5b.tar.lz cuberite-df0190afd743a8acc4768d5800c3b06650aa1c5b.tar.xz cuberite-df0190afd743a8acc4768d5800c3b06650aa1c5b.tar.zst cuberite-df0190afd743a8acc4768d5800c3b06650aa1c5b.zip |
Diffstat (limited to '')
-rw-r--r-- | MCServer/Plugins/Debuggers/Debuggers.lua | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/MCServer/Plugins/Debuggers/Debuggers.lua b/MCServer/Plugins/Debuggers/Debuggers.lua index a619e0b0a..065237ba7 100644 --- a/MCServer/Plugins/Debuggers/Debuggers.lua +++ b/MCServer/Plugins/Debuggers/Debuggers.lua @@ -25,16 +25,18 @@ function Initialize(Plugin) function dump (prefix, a)
for i, v in pairs (a) do
if (type(v) == "table") then
- if (v == _G) then
- LOG(prefix .. i .. " == _G, CYCLE, ignoring");
- elseif (v == _G.package) then
- LOG(prefix .. i .. " == _G.package, ignoring");
- else
- dump(prefix .. i .. ".", v)
+ if (GetChar(i, 1) ~= ".") then
+ if (v == _G) then
+ LOG(prefix .. i .. " == _G, CYCLE, ignoring");
+ elseif (v == _G.package) then
+ LOG(prefix .. i .. " == _G.package, ignoring");
+ else
+ dump(prefix .. i .. ".", v)
+ end
end
elseif (type(v) == "function") then
LOG(prefix .. i .. "()")
- end
+ end
end
end
dump("", _G);
|