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