//line: correctly return error in parsing function

This commit is contained in:
Starbeamrainbowlabs 2021-07-30 19:59:34 +01:00
parent ee561cd6e4
commit 9ccd62845f
No known key found for this signature in database
GPG Key ID: 1BE5172E637709C2

@ -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