mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2025-01-25 22:01:32 +01:00
params to params_text
This commit is contained in:
parent
40f0e437fb
commit
4b35142044
@ -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 New Issue
Block a user