summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2016-01-23 16:57:00 -0500
committerShadowNinja <shadowninja@minetest.net>2016-01-23 16:57:27 -0500
commitf2f714c19e18ede9b3e201b2a5b6bf9828a5dd8d (patch)
tree3ec3d81e956bca1b34570e6c79fe1a6c723431c3
parent47712844a3f2551aedfa9e39cc3a8cc06e01993e (diff)
Fix crash when loading version 3 schematics
-rw-r--r--worldedit/serialization.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/worldedit/serialization.lua b/worldedit/serialization.lua
index 00d984d..a0848e2 100644
--- a/worldedit/serialization.lua
+++ b/worldedit/serialization.lua
@@ -144,9 +144,9 @@ local function load_schematic(value)
"([^%s]+)%s+(%d+)%s+(%d+)[^\r\n]*[\r\n]*") do
param1, param2 = tonumber(param1), tonumber(param2)
table.insert(nodes, {
- x = originx + tonumber(x),
- y = originy + tonumber(y),
- z = originz + tonumber(z),
+ x = tonumber(x),
+ y = tonumber(y),
+ z = tonumber(z),
name = name,
param1 = param1 ~= 0 and param1 or nil,
param2 = param2 ~= 0 and param2 or nil,