1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Refactor Script API's log_deprecated

This commit is contained in:
sfan5 2020-02-12 19:17:04 +01:00
parent 4da057cc49
commit c657fb343f
6 changed files with 27 additions and 31 deletions

View file

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