]> git.lizzy.rs Git - worldedit.git/commitdiff
Fix loading of schematics containing chests that had empty slots.
authorAnthony Zhang <azhang9@gmail.com>
Sun, 28 Apr 2013 23:01:24 +0000 (19:01 -0400)
committerAnthony Zhang <azhang9@gmail.com>
Sun, 28 Apr 2013 23:01:24 +0000 (19:01 -0400)
README.md
worldedit/serialization.lua

index ab7e1ebec584562002de31cd331354f7539058dc..268bcce8a6a806768781f2036cfc0242a0c7e927 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,8 +1,8 @@
 WorldEdit v0.6 for MineTest 0.4
 ===============================
-In-game world editing for [MineTest](http://minetest.net/)! Tons of chat commands to help with building, fixing, and more.
+In-game world editing for [MineTest](http://minetest.net/)! Tons of functionality to help with building, fixing, and more.
 
-For more information, see the [forum topic](http://minetest.net/forum/viewtopic.php?id=572) at the MineTest forums.
+For more information, see the [forum topic](http://minetest.net/forum/viewtopic.php?id=572) at the Minetest forums.
 
 Usage
 -----
index d5b660b9b304ed17b834253ad7b4a6f682d646e3..9d201d87de9acaac75aad5d4351f2782aa5ec4b6 100644 (file)
@@ -216,7 +216,7 @@ worldedit.deserialize = function(originpos, value, env)
        elseif version == 4 then --current nested table format\r
                --wip: this is a filthy hack that works surprisingly well\r
                value = value:gsub("return%s*{", "", 1):gsub("}%s*$", "", 1)\r
-               local escaped = value:gsub("\\\\", "@@"):gsub("\\\"", "@@"):gsub("(\"[^\"]+\")", function(s) return string.rep("@", #s) end)\r
+               local escaped = value:gsub("\\\\", "@@"):gsub("\\\"", "@@"):gsub("(\"[^\"]*\")", function(s) return string.rep("@", #s) end)\r
                local startpos, startpos1, endpos = 1, 1\r
                local nodes = {}\r
                while true do\r