1
0
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:
paramat
2017-11-21 02:55:33 +00:00
committed by paramat
parent f7733f41ea
commit 912ba1e47f
3 changed files with 7 additions and 7 deletions

View File

@ -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