mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 07:23:00 +00:00
params to params_text
This commit is contained in:
parent
40f0e437fb
commit
4b35142044
2 changed files with 6 additions and 6 deletions
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue