params to params_text

This commit is contained in:
VorTechnix 2021-07-22 13:29:29 -07:00
parent 40f0e437fb
commit 4b35142044
2 changed files with 6 additions and 6 deletions

View file

@ -10,10 +10,10 @@ worldedit.register_command("wbox", {
description = "Set the corners of the current selection to <node>",
privs = {worldedit=true},
require_pos = 2,
parse = function(param)
local node = worldedit.normalize_nodename(param)
parse = function(params_text)
local node = worldedit.normalize_nodename(params_text)
if not node then
return false, "invalid node name: " .. param
return false, "invalid node name: " .. params_text
end
return true, node
end,

View file

@ -9,10 +9,10 @@ worldedit.register_command("wcorner", {
description = "Set the corners of the current selection to <node>",
privs = {worldedit=true},
require_pos = 2,
parse = function(param)
local node = worldedit.normalize_nodename(param)
parse = function(params_text)
local node = worldedit.normalize_nodename(params_text)
if not node then
return false, "invalid node name: " .. param
return false, "invalid node name: " .. params_text
end
return true, node
end,