summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Zhang <azhang9@gmail.com>2013-04-28 19:01:24 -0400
committerAnthony Zhang <azhang9@gmail.com>2013-04-28 19:01:24 -0400
commit98c5bc5c5fbd0205b3b3e4ef6c529d88c4960815 (patch)
tree2e97bcc02a84e8779313ddb36739a2f1b319e0cd
parent522edf1cd4f30b580c92b2951192f63a10b21682 (diff)
Fix loading of schematics containing chests that had empty slots.
-rw-r--r--README.md4
-rw-r--r--worldedit/serialization.lua2
2 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index ab7e1eb..268bcce 100644
--- 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
-----
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