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