mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-27 17:43:53 +01:00
Fix minor string manipulation crash
This commit is contained in:
parent
5ad44e7c31
commit
0ddf160e84
@ -189,7 +189,7 @@ function worldeditadditions.parse_weighted_nodes(parts, as_list, func_normalise)
|
|||||||
else node_name = func_normalise(part) end
|
else node_name = func_normalise(part) end
|
||||||
|
|
||||||
if not node_name then
|
if not node_name then
|
||||||
return false, "Error: Invalid number '"..chance.."'"
|
return false, "Error: Invalid number '"..tostring(part).."'"
|
||||||
end
|
end
|
||||||
if last_node_name then
|
if last_node_name then
|
||||||
if as_list then table.insert(result, { node = last_node_name, weight = 1 })
|
if as_list then table.insert(result, { node = last_node_name, weight = 1 })
|
||||||
|
Loading…
Reference in New Issue
Block a user