diff --git a/worldeditadditions_commands/commands/extra/basename.lua b/worldeditadditions_commands/commands/extra/basename.lua index d814aa6..77fa168 100644 --- a/worldeditadditions_commands/commands/extra/basename.lua +++ b/worldeditadditions_commands/commands/extra/basename.lua @@ -8,7 +8,9 @@ worldedit.register_command("basename", { description = "Returns the base name of nodes that use a given alias.", privs = {worldedit = true}, parse = function(params_text) - params_text = params_text or "air" + if params_text == "" or not params_text then + return false, "Node not specified." + end return true, params_text end, func = function(name, params_text)