Skip to content
Browse files

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

  • Loading branch information
sfan5 committed Dec 13, 2014
1 parent fb49cc4 commit e4d007199fa592d30aa7cc523a1551a7182dfec3
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

1 comment on commit e4d0071


This comment has been minimized.

Copy link

@ShadowNinja ShadowNinja commented on e4d0071 Dec 30, 2014

The table should be created in the version 3 code (or the creator should be removed from the v4/v5 code, although that's less preferable). Otherwise it creates a temporary table that is never used.

Please sign in to comment.
You can’t perform that action at this time.