Skip to content

Commit 98c5bc5

Browse files
committedApr 28, 2013
Fix loading of schematics containing chests that had empty slots.
1 parent 522edf1 commit 98c5bc5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
WorldEdit v0.6 for MineTest 0.4
22
===============================
3-
In-game world editing for [MineTest](http://minetest.net/)! Tons of chat commands to help with building, fixing, and more.
3+
In-game world editing for [MineTest](http://minetest.net/)! Tons of functionality to help with building, fixing, and more.
44

5-
For more information, see the [forum topic](http://minetest.net/forum/viewtopic.php?id=572) at the MineTest forums.
5+
For more information, see the [forum topic](http://minetest.net/forum/viewtopic.php?id=572) at the Minetest forums.
66

77
Usage
88
-----

‎worldedit/serialization.lua

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

0 commit comments

Comments
 (0)
Please sign in to comment.