mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-26 09:03:01 +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
|
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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue