summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/Debuggers
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-10 16:15:41 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-02-10 16:15:41 +0100
commit345da37e96bb5f1fff04e419de0364d497b1b52e (patch)
treeeb2b7f84630ce53d3fa66912626c38046aee53b1 /MCServer/Plugins/Debuggers
parentFixed ASSERT / VERIFY mismatch in ManualBindings' error handling (diff)
downloadcuberite-345da37e96bb5f1fff04e419de0364d497b1b52e.tar
cuberite-345da37e96bb5f1fff04e419de0364d497b1b52e.tar.gz
cuberite-345da37e96bb5f1fff04e419de0364d497b1b52e.tar.bz2
cuberite-345da37e96bb5f1fff04e419de0364d497b1b52e.tar.lz
cuberite-345da37e96bb5f1fff04e419de0364d497b1b52e.tar.xz
cuberite-345da37e96bb5f1fff04e419de0364d497b1b52e.tar.zst
cuberite-345da37e96bb5f1fff04e419de0364d497b1b52e.zip
Diffstat (limited to 'MCServer/Plugins/Debuggers')
-rw-r--r--MCServer/Plugins/Debuggers/Debuggers.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/MCServer/Plugins/Debuggers/Debuggers.lua b/MCServer/Plugins/Debuggers/Debuggers.lua
index 1775c960e..018e56f29 100644
--- a/MCServer/Plugins/Debuggers/Debuggers.lua
+++ b/MCServer/Plugins/Debuggers/Debuggers.lua
@@ -53,6 +53,20 @@ function Initialize(Plugin)
end
f:close();
end
+
+
+ -- Debug block area merging:
+ local BA1 = cBlockArea();
+ local BA2 = cBlockArea();
+ if (BA1:LoadFromSchematicFile("schematics/test.schematic")) then
+ if (BA2:LoadFromSchematicFile("schematics/fountain.schematic")) then
+ BA2:SetRelBlockType(0, 0, 0, E_BLOCK_LAPIS_BLOCK);
+ BA2:SetRelBlockType(1, 0, 0, E_BLOCK_LAPIS_BLOCK);
+ BA2:SetRelBlockType(2, 0, 0, E_BLOCK_LAPIS_BLOCK);
+ BA1:Merge(BA2, 1, 10, 1, cBlockArea.msImprint);
+ BA1:SaveToSchematicFile("schematics/merge.schematic");
+ end
+ end
return true
end