mirror of
https://github.com/minetest-mods/areas.git
synced 2025-06-30 07:00:29 +02:00
Fix rename_area's argument validity check
This commit is contained in:
@ -120,7 +120,7 @@ minetest.register_chatcommand("rename_area", {
|
||||
description = "Rename a area that you own",
|
||||
func = function(name, param)
|
||||
local id, newName = param:match("^(%d+)%s(.+)$")
|
||||
if not found then
|
||||
if not id then
|
||||
return false, "Invalid usage, see /help rename_area."
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user