airapply, ellipsoidapply: allow //multi to be a subcommand

This commit is contained in:
Starbeamrainbowlabs 2021-07-16 23:00:31 +01:00
parent eed691f6e0
commit 8b4ba8ccc1
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@ worldedit.register_command("airapply", {
if cmd_we == nil then if cmd_we == nil then
return false, "Error: "..cmd_name.." isn't a valid command." return false, "Error: "..cmd_name.." isn't a valid command."
end 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." return false, "Error: The command "..cmd_name.." exists, but doesn't take 2 positions and so can't be used with //airapply."
end end

View file

@ -26,7 +26,7 @@ worldedit.register_command("ellipsoidapply", {
return false, "Error: "..cmd_name.." isn't a valid command." return false, "Error: "..cmd_name.." isn't a valid command."
end end
-- print("cmd require_pos", cmd_we.require_pos, "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." return false, "Error: The command "..cmd_name.." exists, but doesn't take 2 positions and so can't be used with //ellipsoidapply."
end end