mirror of
https://github.com/minetest/minetest.git
synced 2025-06-29 14:40:25 +02: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:
@ -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
|
||||
|
Reference in New Issue
Block a user