forked from mtcontrib/Minetest-WorldEdit
Fix the missing command //suppress <node>.
This commit is contained in:
parent
426dfb0bc3
commit
f087c3ef71
15
worldedit/table serialize (WIP).lua
Normal file
15
worldedit/table serialize (WIP).lua
Normal file
@ -0,0 +1,15 @@
|
||||
serialize_meta = function(pos)
|
||||
local insert, format, concat = table.insert, string.format, table.concat
|
||||
--wip: do recursive serialize
|
||||
|
||||
local meta = env:get_meta(pos):to_table()
|
||||
local fields = {}
|
||||
for key, value in pairs(meta.fields) do
|
||||
insert(fields, format("%q", key) .. format("%q", value))
|
||||
end
|
||||
return concat(meta.inventory, ",") .. concat(fields)
|
||||
end
|
||||
|
||||
deserialize_meta = function(value)
|
||||
--wip
|
||||
end
|
Loading…
Reference in New Issue
Block a user