Fix loading of schematics containing chests that had empty slots.

This commit is contained in:
Anthony Zhang
2013-04-28 19:01:24 -04:00
parent 522edf1cd4
commit 98c5bc5c5f
2 changed files with 3 additions and 3 deletions

View File

@ -216,7 +216,7 @@ worldedit.deserialize = function(originpos, value, env)
elseif version == 4 then --current nested table format
--wip: this is a filthy hack that works surprisingly well
value = value:gsub("return%s*{", "", 1):gsub("}%s*$", "", 1)
local escaped = value:gsub("\\\\", "@@"):gsub("\\\"", "@@"):gsub("(\"[^\"]+\")", function(s) return string.rep("@", #s) end)
local escaped = value:gsub("\\\\", "@@"):gsub("\\\"", "@@"):gsub("(\"[^\"]*\")", function(s) return string.rep("@", #s) end)
local startpos, startpos1, endpos = 1, 1
local nodes = {}
while true do