mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-26 00:53:00 +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)
|
||||
|
||||
if not replace_node then
|
||||
worldedit.player_notify(name, "Error: Invalid node name.")
|
||||
return false
|
||||
return false, "Error: Invalid node name '"..replace_node.."'."
|
||||
end
|
||||
|
||||
return true, replace_node, radius
|
||||
|
|
Loading…
Reference in a new issue