mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-09-12 08:08:30 +02: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
|
||||
|
||||
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 New Issue
Block a user