From 98c5bc5c5fbd0205b3b3e4ef6c529d88c4960815 Mon Sep 17 00:00:00 2001 From: Anthony Zhang Date: Sun, 28 Apr 2013 19:01:24 -0400 Subject: Fix loading of schematics containing chests that had empty slots. --- worldedit/serialization.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'worldedit/serialization.lua') diff --git a/worldedit/serialization.lua b/worldedit/serialization.lua index d5b660b..9d201d8 100644 --- a/worldedit/serialization.lua +++ b/worldedit/serialization.lua @@ -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 -- cgit v1.2.3