mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2025-01-11 15:07:28 +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>",
|
||||
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 New Issue
Block a user