1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2025-06-30 23:20:40 +02:00

Add Block Queue

This commit is contained in:
Sfan5
2013-04-28 19:08:09 +02:00
parent 71b6004b92
commit 5e5c1dc6c3
7 changed files with 292 additions and 84 deletions

View File

@ -160,10 +160,10 @@ end
--loads the nodes represented by string `value` at position `originpos`, returning the number of nodes deserialized
--contains code based on [table.save/table.load](http://lua-users.org/wiki/SaveTableToFile) by ChillCode, available under the MIT license (GPL compatible)
worldedit.deserialize = function(originpos, value)
worldedit.deserialize = function(originpos, value, env)
local originx, originy, originz = originpos.x, originpos.y, originpos.z
local count = 0
local env = minetest.env
if env == nil then env = minetest.env end
local version = worldedit.valueversion(value)
if version == 1 or version == 2 then --original flat table format
--obtain the node table
@ -239,4 +239,4 @@ worldedit.deserialize = function(originpos, value)
end
end
return count
end
end