mirror of
https://github.com/Uberi/Minetest-WorldEdit.git
synced 2024-12-26 02:30:40 +01:00
Fix crash when loading version 3 schematics
This commit is contained in:
parent
47712844a3
commit
f2f714c19e
@ -144,9 +144,9 @@ local function load_schematic(value)
|
|||||||
"([^%s]+)%s+(%d+)%s+(%d+)[^\r\n]*[\r\n]*") do
|
"([^%s]+)%s+(%d+)%s+(%d+)[^\r\n]*[\r\n]*") do
|
||||||
param1, param2 = tonumber(param1), tonumber(param2)
|
param1, param2 = tonumber(param1), tonumber(param2)
|
||||||
table.insert(nodes, {
|
table.insert(nodes, {
|
||||||
x = originx + tonumber(x),
|
x = tonumber(x),
|
||||||
y = originy + tonumber(y),
|
y = tonumber(y),
|
||||||
z = originz + tonumber(z),
|
z = tonumber(z),
|
||||||
name = name,
|
name = name,
|
||||||
param1 = param1 ~= 0 and param1 or nil,
|
param1 = param1 ~= 0 and param1 or nil,
|
||||||
param2 = param2 ~= 0 and param2 or nil,
|
param2 = param2 ~= 0 and param2 or nil,
|
||||||
|
Loading…
Reference in New Issue
Block a user