aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2020-02-12 19:17:04 +0100
committersfan5 <sfan5@live.de>2020-02-23 22:24:12 +0100
commitc657fb343f120b7462f7ca580852636ad98b8ae0 (patch)
tree6d7b4fbe85a7e56f03e017edff52b0a56aeacfc3 /src/script/lua_api
parent4da057cc49082192bbc45689d80dec3410e41f27 (diff)
downloadminetest-c657fb343f120b7462f7ca580852636ad98b8ae0.tar.gz
minetest-c657fb343f120b7462f7ca580852636ad98b8ae0.tar.bz2
minetest-c657fb343f120b7462f7ca580852636ad98b8ae0.zip
Refactor Script API's log_deprecated
Diffstat (limited to 'src/script/lua_api')
-rw-r--r--src/script/lua_api/l_util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/lua_api/l_util.cpp b/src/script/lua_api/l_util.cpp
index a58c3a196..ae3e5df3d 100644
--- a/src/script/lua_api/l_util.cpp
+++ b/src/script/lua_api/l_util.cpp
@@ -59,7 +59,7 @@ int ModApiUtil::l_log(lua_State *L)
std::string name = luaL_checkstring(L, 1);
text = luaL_checkstring(L, 2);
if (name == "deprecated") {
- log_deprecated(L, text);
+ log_deprecated(L, text, 2);
return 0;
}
level = Logger::stringToLevel(name);