diff options
author | paramat <paramat@users.noreply.github.com> | 2017-11-21 02:55:33 +0000 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2017-11-24 05:38:53 +0000 |
commit | 912ba1e47f61be18fa01cc91936929168c883f7b (patch) | |
tree | eb60b88fe080385293bad34967ebae4568e9b019 /src/script/lua_api | |
parent | f7733f41ea36e7d4531fea61a4cd4b679514d263 (diff) | |
download | minetest-912ba1e47f61be18fa01cc91936929168c883f7b.tar.gz minetest-912ba1e47f61be18fa01cc91936929168c883f7b.tar.bz2 minetest-912ba1e47f61be18fa01cc91936929168c883f7b.zip |
Clearobjects: Send progress messages to terminal using actionstream
Change default mode to 'quick' as 'full' can lock up a server for a
long time.
Diffstat (limited to 'src/script/lua_api')
-rw-r--r-- | src/script/lua_api/l_env.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/lua_api/l_env.cpp b/src/script/lua_api/l_env.cpp index f45a8da80..870eeb1ae 100644 --- a/src/script/lua_api/l_env.cpp +++ b/src/script/lua_api/l_env.cpp @@ -956,7 +956,7 @@ int ModApiEnvMod::l_clear_objects(lua_State *L) { GET_ENV_PTR; - ClearObjectsMode mode = CLEAR_OBJECTS_MODE_FULL; + ClearObjectsMode mode = CLEAR_OBJECTS_MODE_QUICK; if (lua_istable(L, 1)) { mode = (ClearObjectsMode)getenumfield(L, 1, "mode", ModApiEnvMod::es_ClearObjectsMode, mode); |