mirror of
https://github.com/Uberi/Minetest-WorldEdit.git
synced 2024-12-26 02:30:40 +01:00
Fix bug with loading old .we file formats, thanks to @Sokomine
This commit is contained in:
parent
fb49cc4bcc
commit
e4d007199f
@ -114,7 +114,7 @@ end
|
|||||||
-- @return A node list in the latest format, or nil on failure.
|
-- @return A node list in the latest format, or nil on failure.
|
||||||
function worldedit.load_schematic(value)
|
function worldedit.load_schematic(value)
|
||||||
local version, header, content = worldedit.read_header(value)
|
local version, header, content = worldedit.read_header(value)
|
||||||
local nodes
|
local nodes = {}
|
||||||
if version == 1 or version == 2 then -- Original flat table format
|
if version == 1 or version == 2 then -- Original flat table format
|
||||||
local tables = minetest.deserialize(content)
|
local tables = minetest.deserialize(content)
|
||||||
if not tables then return nil end
|
if not tables then return nil end
|
||||||
|
Loading…
Reference in New Issue
Block a user