From f2f714c19e18ede9b3e201b2a5b6bf9828a5dd8d Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Sat, 23 Jan 2016 16:57:00 -0500 Subject: [PATCH] Fix crash when loading version 3 schematics --- worldedit/serialization.lua | 6 +++--- 1 file 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,