Fix bug with loading old .we file formats, thanks to @Sokomine

This commit is contained in:
sfan5 2014-12-13 21:13:11 +01:00
parent fb49cc4bcc
commit e4d007199f
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ end
-- @return A node list in the latest format, or nil on failure.
function worldedit.load_schematic(value)
local version, header, content = worldedit.read_header(value)
local nodes
local nodes = {}
if version == 1 or version == 2 then -- Original flat table format
local tables = minetest.deserialize(content)
if not tables then return nil end