mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-30 19:13:53 +01:00
//line: correctly return error in parsing function
This commit is contained in:
parent
ee561cd6e4
commit
9ccd62845f
@ -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 New Issue
Block a user