diff options
author | sfan5 <sfan5@live.de> | 2014-12-13 21:13:11 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2014-12-13 21:13:11 +0100 |
commit | e4d007199fa592d30aa7cc523a1551a7182dfec3 (patch) | |
tree | e2bd4db0ef7727650cca1a210ac151fe0a4098ee /worldedit | |
parent | fb49cc4bccef07c6ae01ad720fbc7a427e14e7d2 (diff) |
Fix bug with loading old .we file formats, thanks to @Sokomine
Diffstat (limited to 'worldedit')
-rw-r--r-- | worldedit/serialization.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/worldedit/serialization.lua b/worldedit/serialization.lua index 4d28988..e08699e 100644 --- a/worldedit/serialization.lua +++ b/worldedit/serialization.lua @@ -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
|