Skip to content

Commit

Permalink
Fix loading of schematics containing chests that had empty slots.
Browse files Browse the repository at this point in the history
  • Loading branch information
Uberi committed Apr 28, 2013
1 parent 522edf1 commit 98c5bc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions 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
-----
Expand Down
2 changes: 1 addition & 1 deletion worldedit/serialization.lua
Expand Up @@ -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
Expand Down

0 comments on commit 98c5bc5

Please sign in to comment.