diff options
author | madmaxoft <madmaxoft@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-04-09 15:43:24 +0200 |
---|---|---|
committer | madmaxoft <madmaxoft@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-04-09 15:43:24 +0200 |
commit | 48cec90c3f1e81daec3d216ddf4db1ea1e2a8341 (patch) | |
tree | bd9c59149da9eec5e22e7bbbb9fe0de6352fee8d /MCServer/Plugins/Debuggers/Debuggers.lua | |
parent | Removed an unneeded FTP command template file. ncftp supports everything on the commandline. (diff) | |
download | cuberite-48cec90c3f1e81daec3d216ddf4db1ea1e2a8341.tar cuberite-48cec90c3f1e81daec3d216ddf4db1ea1e2a8341.tar.gz cuberite-48cec90c3f1e81daec3d216ddf4db1ea1e2a8341.tar.bz2 cuberite-48cec90c3f1e81daec3d216ddf4db1ea1e2a8341.tar.lz cuberite-48cec90c3f1e81daec3d216ddf4db1ea1e2a8341.tar.xz cuberite-48cec90c3f1e81daec3d216ddf4db1ea1e2a8341.tar.zst cuberite-48cec90c3f1e81daec3d216ddf4db1ea1e2a8341.zip |
Diffstat (limited to 'MCServer/Plugins/Debuggers/Debuggers.lua')
-rw-r--r-- | MCServer/Plugins/Debuggers/Debuggers.lua | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/MCServer/Plugins/Debuggers/Debuggers.lua b/MCServer/Plugins/Debuggers/Debuggers.lua index c1c0e1fe6..bf1cf516b 100644 --- a/MCServer/Plugins/Debuggers/Debuggers.lua +++ b/MCServer/Plugins/Debuggers/Debuggers.lua @@ -69,6 +69,8 @@ function Initialize(Plugin) BA1:Merge(BA2, 1, 10, 1, cBlockArea.msImprint);
BA1:SaveToSchematicFile("schematics/merge.schematic");
end
+ else
+ BA1:Create(16, 16, 16);
end
-- Debug block area cuboid filling:
@@ -166,6 +168,31 @@ function Initialize(Plugin) LOG("SQLite3 failed to open DB! (" .. ErrCode .. ", " .. ErrMsg ..")");
end
+
+ -- Debug LuaExpat binding:
+ local count = 0
+ callbacks = {
+ StartElement = function (parser, name)
+ LOG("+ " .. string.rep(" ", count) .. name);
+ count = count + 1;
+ end,
+ EndElement = function (parser, name)
+ count = count - 1;
+ LOG("- " .. string.rep(" ", count) .. name);
+ end
+ }
+
+ local p = lxp.new(callbacks);
+ p:parse("<elem1>\nnext line\nanother line");
+ p:parse("text\n");
+ p:parse("<elem2/>\n");
+ p:parse("more text");
+ p:parse("</elem1>");
+ p:parse("\n");
+ p:parse() -- finishes the document
+ p:close() -- closes the parser
+
+
return true
end
|