summaryrefslogtreecommitdiff
path: root/worldedit/code.lua
diff options
context:
space:
mode:
authorAnthony Zhang <azhang9@gmail.com>2013-07-21 16:54:25 -0400
committerAnthony Zhang <azhang9@gmail.com>2013-07-21 16:54:25 -0400
commit8ebf9d3c2ae63374c5501be0660b0d57204bd335 (patch)
tree6c943fc82110d45a9e330f8e7f6a0a5452e8110c /worldedit/code.lua
parentac5e801834245bcf93f720d290a36b09a2527576 (diff)
Super duper VoxelManipulator speedups to nearly every API function, and plus support for unloaded areas. Still in progress. Also, fix //allocate for very large schematics.
Diffstat (limited to 'worldedit/code.lua')
-rw-r--r--worldedit/code.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/worldedit/code.lua b/worldedit/code.lua
index 366688e..8e2d362 100644
--- a/worldedit/code.lua
+++ b/worldedit/code.lua
@@ -24,6 +24,10 @@ worldedit.luatransform = function(pos1, pos2, code)
end
local operation = factory()
+ --make area stay loaded
+ local manip = minetest.get_voxel_manip()
+ manip:read_from_map(pos1, pos2)
+
local pos = {x=pos1.x, y=0, z=0}
while pos.x <= pos2.x do
pos.y = pos1.y