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:
parent
4da057cc49
commit
c657fb343f
6 changed files with 27 additions and 31 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue