mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-22 19:45:02 +00:00
airapply, ellipsoidapply: allow //multi to be a subcommand
This commit is contained in:
parent
eed691f6e0
commit
8b4ba8ccc1
2 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ worldedit.register_command("airapply", {
|
|||
if cmd_we == nil then
|
||||
return false, "Error: "..cmd_name.." isn't a valid command."
|
||||
end
|
||||
if cmd_we.require_pos ~= 2 then
|
||||
if cmd_we.require_pos ~= 2 and cmd_name ~= "multi" then
|
||||
return false, "Error: The command "..cmd_name.." exists, but doesn't take 2 positions and so can't be used with //airapply."
|
||||
end
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ worldedit.register_command("ellipsoidapply", {
|
|||
return false, "Error: "..cmd_name.." isn't a valid command."
|
||||
end
|
||||
-- print("cmd require_pos", cmd_we.require_pos, "END")
|
||||
if cmd_we.require_pos ~= 2 then
|
||||
if cmd_we.require_pos ~= 2 and cmd_name ~= "multi" then
|
||||
return false, "Error: The command "..cmd_name.." exists, but doesn't take 2 positions and so can't be used with //ellipsoidapply."
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue