mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Clearobjects: Send progress messages to terminal using actionstream
Change default mode to 'quick' as 'full' can lock up a server for a long time.
This commit is contained in:
parent
f7733f41ea
commit
912ba1e47f
3 changed files with 7 additions and 7 deletions
|
@ -896,10 +896,10 @@ core.register_chatcommand("clearobjects", {
|
|||
privs = {server=true},
|
||||
func = function(name, param)
|
||||
local options = {}
|
||||
if param == "" or param == "full" then
|
||||
options.mode = "full"
|
||||
elseif param == "quick" then
|
||||
if param == "" or param == "quick" then
|
||||
options.mode = "quick"
|
||||
elseif param == "full" then
|
||||
options.mode = "full"
|
||||
else
|
||||
return false, "Invalid usage, see /help clearobjects."
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue