Skip to content

Commit

Permalink
Fix crash when loading version 3 schematics
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowNinja committed Jan 23, 2016
1 parent 4771284 commit f2f714c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions worldedit/serialization.lua
Expand Up @@ -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,
Expand Down

0 comments on commit f2f714c

Please sign in to comment.