mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 23:42:59 +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>",
|
description = "Set the corners of the current selection to <node>",
|
||||||
privs = {worldedit=true},
|
privs = {worldedit=true},
|
||||||
require_pos = 2,
|
require_pos = 2,
|
||||||
parse = function(param)
|
parse = function(params_text)
|
||||||
local node = worldedit.normalize_nodename(param)
|
local node = worldedit.normalize_nodename(params_text)
|
||||||
if not node then
|
if not node then
|
||||||
return false, "invalid node name: " .. param
|
return false, "invalid node name: " .. params_text
|
||||||
end
|
end
|
||||||
return true, node
|
return true, node
|
||||||
end,
|
end,
|
||||||
|
|
|
@ -9,10 +9,10 @@ worldedit.register_command("wcorner", {
|
||||||
description = "Set the corners of the current selection to <node>",
|
description = "Set the corners of the current selection to <node>",
|
||||||
privs = {worldedit=true},
|
privs = {worldedit=true},
|
||||||
require_pos = 2,
|
require_pos = 2,
|
||||||
parse = function(param)
|
parse = function(params_text)
|
||||||
local node = worldedit.normalize_nodename(param)
|
local node = worldedit.normalize_nodename(params_text)
|
||||||
if not node then
|
if not node then
|
||||||
return false, "invalid node name: " .. param
|
return false, "invalid node name: " .. params_text
|
||||||
end
|
end
|
||||||
return true, node
|
return true, node
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Reference in a new issue