summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-01-27 03:34:38 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-01-27 03:34:38 +0100
commitdf0190afd743a8acc4768d5800c3b06650aa1c5b (patch)
tree626f812eb9d3743adf535d84076621a79ace9444
parentAdded the HOOK_BLOCK_TO_PICKUPS hook that fires when a block is dug up and should be converted to pickups. (diff)
downloadcuberite-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
-rw-r--r--MCServer/Plugins/Debuggers/Debuggers.lua16
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);