mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 23:42:59 +00:00
//line: correctly return error in parsing function
This commit is contained in:
parent
ee561cd6e4
commit
9ccd62845f
1 changed files with 1 additions and 2 deletions
|
@ -24,8 +24,7 @@ worldedit.register_command("line", {
|
||||||
replace_node = worldedit.normalize_nodename(replace_node)
|
replace_node = worldedit.normalize_nodename(replace_node)
|
||||||
|
|
||||||
if not replace_node then
|
if not replace_node then
|
||||||
worldedit.player_notify(name, "Error: Invalid node name.")
|
return false, "Error: Invalid node name '"..replace_node.."'."
|
||||||
return false
|
|
||||||
end
|
end
|
||||||
|
|
||||||
return true, replace_node, radius
|
return true, replace_node, radius
|
||||||
|
|
Loading…
Reference in a new issue